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); let dirWatcher = chokidar.watch(playlistFolder);
dirWatcher.on('add', () => { dirWatcher.on('add', () => {
downloadCount += 1; downloadCount++;
if (downloadCount >= playlist.items.length) { if (downloadCount >= playlist.items.length) {
win.setProgressBar(-1); // close progress bar win.setProgressBar(-1); // close progress bar
setBadge(0); // close badge counter setBadge(0); // close badge counter

View File

@ -39,8 +39,8 @@ module.exports.presets = {
}, },
}; };
module.exports.setBadge = num => { module.exports.setBadge = n => {
if (is.linux() || is.macOS()) { if (is.linux() || is.macOS()) {
electron.app.badgeCount = num; electron.app.setBadgeCount(n);
} }
} }