Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Araxeus committed May 6, 2021
1 parent 53bf7c5 commit 2d6e858
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/downloader/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ module.exports = (win, options, refreshMenu) => {

let dirWatcher = chokidar.watch(playlistFolder);
dirWatcher.on('add', () => {
console.log(`progress:${progress} + steps:${steps} = newProgress:${progress+steps}`)
progress += steps;
if (progress >= 0.999) {
if (progress >= 0.9999) {
win.setProgressBar(-1); // close progress bar
dirWatcher.close().then(() => dirWatcher = null);
} else {
Expand Down

0 comments on commit 2d6e858

Please sign in to comment.