mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
lint
This commit is contained in:
@ -73,9 +73,8 @@ module.exports = (win, options, refreshMenu) => {
|
|||||||
|
|
||||||
let dirWatcher = chokidar.watch(playlistFolder);
|
let dirWatcher = chokidar.watch(playlistFolder);
|
||||||
dirWatcher.on('add', () => {
|
dirWatcher.on('add', () => {
|
||||||
console.log(`progress:${progress} + steps:${steps} = newProgress:${progress+steps}`)
|
|
||||||
progress += steps;
|
progress += steps;
|
||||||
if (progress >= 0.999) {
|
if (progress >= 0.9999) {
|
||||||
win.setProgressBar(-1); // close progress bar
|
win.setProgressBar(-1); // close progress bar
|
||||||
dirWatcher.close().then(() => dirWatcher = null);
|
dirWatcher.close().then(() => dirWatcher = null);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user