From 0906271aa9bbfc49ad12ea3c1af2e46aae606f3a Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Fri, 8 Aug 2025 19:58:20 +0800 Subject: [PATCH] refactor: simplify auto download check logic by removing unnecessary progress updates --- static/js/managers/ExampleImagesManager.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/static/js/managers/ExampleImagesManager.js b/static/js/managers/ExampleImagesManager.js index c6388705..396bf95b 100644 --- a/static/js/managers/ExampleImagesManager.js +++ b/static/js/managers/ExampleImagesManager.js @@ -763,22 +763,7 @@ class ExampleImagesManager { const data = await response.json(); - if (data.success) { - // Only show progress if there are actually items to download - if (data.status && data.status.total > 0) { - this.isDownloading = true; - this.isPaused = false; - this.hasShownCompletionToast = false; - this.startTime = new Date(); - this.updateUI(data.status); - this.showProgressPanel(); - this.startProgressUpdates(); - this.updateDownloadButtonText(); - console.log(`Auto download started: ${data.status.total} items to process`); - } else { - console.log('Auto download check completed - no new items to download'); - } - } else { + if (!data.success) { console.warn('Auto download check failed:', data.error); } } catch (error) {