mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
lint
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user