From 23e3ee35e8637c7b07939586f03ad9ca2acc5378 Mon Sep 17 00:00:00 2001 From: aandrew-me Date: Fri, 14 Nov 2025 16:31:18 +0300 Subject: [PATCH] Improved UX of the clear all btn --- src/renderer.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/renderer.js b/src/renderer.js index c87a9f8..cb62bf8 100644 --- a/src/renderer.js +++ b/src/renderer.js @@ -799,6 +799,9 @@ class YtDownloaderApp { ); }) .once("error", (error) => { + this.state.downloadedItems.add(randomId); + this._updateClearAllButton(); + this._handleDownloadError(error, randomId); }); } @@ -1452,7 +1455,12 @@ class YtDownloaderApp { this.state.downloadQueue = this.state.downloadQueue.filter( (job) => job.queueId !== id ); + + // If it has been downloaded, remove from the set + this.state.downloadedItems.delete(id); + this._fadeAndRemoveItem(id); + this._updateClearAllButton(); } /**