This commit is contained in:
Araxeus
2022-01-14 00:08:43 +02:00
parent 17a24cbb04
commit 57ace9d504
2 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ module.exports = (win, options) => {
let dirWatcher = chokidar.watch(playlistFolder);
dirWatcher.on('add', () => {
downloadCount += 1;
downloadCount++;
if (downloadCount >= playlist.items.length) {
win.setProgressBar(-1); // close progress bar
setBadge(0); // close badge counter