From 90f97d6669fd06164dc6f5bb1efa58771e323e99 Mon Sep 17 00:00:00 2001 From: Michael Wizner Date: Sun, 13 Feb 2022 16:37:56 +0000 Subject: [PATCH] Fix app not quitting completely on Cmd+Q (Mac) --- app/lib/app.ts | 4 ++++ 1 file changed, 4 insertions(+) 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()