diff --git a/app/lib/app.ts b/app/lib/app.ts index 0d20cb8a..c8ba4cab 100644 --- a/app/lib/app.ts +++ b/app/lib/app.ts @@ -93,6 +93,10 @@ export class Application { app.commandLine.appendSwitch(flag[0], flag[1]) } + app.on('before-quit', () => { + this.quitRequested = true + }) + app.on('window-all-closed', () => { if (this.quitRequested || process.platform !== 'darwin') { app.quit()