Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 98e1797

Browse files
committed
fix: quit
1 parent fddc443 commit 98e1797

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/main.dev.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,12 @@ app.on('open-url', (event, protocolUrl) => {
276276
handleOpenUrl(protocolUrl)
277277
})
278278

279+
app.on('window-all-closed', () => {
280+
if (os.platform() !== 'darwin') {
281+
app.quit()
282+
}
283+
})
284+
279285
/**
280286
* Someone tried to run a second instance, we should focus our window.
281287
*/

0 commit comments

Comments
 (0)