quit app when no window exist

This commit is contained in:
geekgeekrun
2024-02-23 08:42:09 +08:00
parent 588e75f92d
commit 2c73660625

View File

@@ -39,9 +39,7 @@ export function openSettingWindow() {
// for applications and their menu bar to stay active until the user quits
// explicitly with Cmd + Q.
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
}
app.quit()
})
// In this file you can include the rest of your app"s specific main process