Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,20 +341,20 @@ app.whenReady().then(async () => {
mainWindow.once('ready-to-show', () => mainWindow.show())
}
})
})

app.on('window-all-closed', () => {
// Recreating a window - keep app running
if (isInWindowRelaunch) {
return
}

// On macOS, it is common for applications and their menu bar to stay active even without windows
// until the user quits explicitly with Cmd + Q or Quit from the menu.
if (isMac()) {
return
}
app.on('window-all-closed', () => {
// Recreating a window - keep app running
if (isInWindowRelaunch) {
return
}
// On macOS, it is common for applications and their menu bar to stay active even without windows
// until the user quits explicitly with Cmd + Q or Quit from the menu.
// However, it makes sense only for the Talk window and not for Authentication or Welcome windows.
if (isMac() && createMainWindow === createTalkWindow) {
return
}
// All the windows are closed - quit the app
app.quit()
})

// All the windows are closed - quit the app
app.quit()
})