Improved UX of the clear all btn

pull/354/head
aandrew-me 2 weeks ago
parent 1d09c01717
commit 23e3ee35e8

@ -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();
}
/**

Loading…
Cancel
Save