diff --git a/app/config.ts b/app/config.ts index 949e1d0e..979a352b 100644 --- a/app/config.ts +++ b/app/config.ts @@ -57,17 +57,11 @@ const _watch = () => { console.error('error watching config', error); }); - app.on('before-quit', (e) => { + app.on('before-quit', () => { if (Object.keys(_watcher.getWatched()).length > 0) { - e.preventDefault(); - _watcher - .close() - .catch((err) => { - console.warn(err); - }) - .finally(() => { - app.quit(); - }); + _watcher.close().catch((err) => { + console.warn(err); + }); } }); };