From ca569f3e5c2780ab275945354e42ced7d54a1dff Mon Sep 17 00:00:00 2001 From: Momentry Studio Date: Sun, 18 Oct 2026 23:43:45 +0800 Subject: [PATCH] fix: re-scan now shows status update immediately Root cause: finally block called loadFiles() which cleared the cache and reloaded from server, overwriting the manual 'scanning' status. Server videos.status may not be synced yet by PostgreSQL trigger. Fix: Remove loadFiles() from finally block. Keep manual status update. Polling mechanism will sync status from server automatically. --- src/views/LibraryView.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/LibraryView.vue b/src/views/LibraryView.vue index 3b1bd46..27636b9 100644 --- a/src/views/LibraryView.vue +++ b/src/views/LibraryView.vue @@ -2251,7 +2251,8 @@ async function doReprocess(f: any) { console.error('[re-scan]', e) } finally { reprocessing.value = false - await loadFiles() + // Don't call loadFiles() here - it would overwrite the manual status update + // The polling mechanism will sync status from server automatically setTimeout(() => { actionMsg.value = '' }, 5000) } }