Skip to content

Commit

Permalink
quit macos all close (#3775)
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz authored Sep 4, 2024
1 parent e7c6dd3 commit 74b4cb9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74b4cb9

Please sign in to comment.