From 74b4cb9e085f3916872c54ebf35dcf721ab92b05 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Wed, 4 Sep 2024 15:47:04 -0700 Subject: [PATCH] quit macos all close (#3775) Signed-off-by: Jess Frazelle --- src/main.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.ts b/src/main.ts index 5c441e089..25da141be 100644 --- a/src/main.ts +++ b/src/main.ts @@ -94,13 +94,11 @@ const createWindow = (): BrowserWindow => { return newWindow } -// Quit when all windows are closed, except on macOS. There, it's common +// Quit when all windows are closed, even on macOS. There, it's common // for applications and their menu bar to stay active until the user quits -// explicitly with Cmd + Q. +// explicitly with Cmd + Q, but it is a really weird behavior with our app. app.on('window-all-closed', () => { - if (process.platform !== 'darwin') { - app.quit() - } + app.quit() }) // This method will be called when Electron has finished