Skip to content

Commit 2acc607

Browse files
committed
Quit process when all windows close, except OSX
1 parent 3444e77 commit 2acc607

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/window-manager.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ app.on('before-quit', function() {
352352
}
353353
});
354354

355+
app.on('window-all-closed', () => {
356+
if (process.platform !== 'darwin') {
357+
app.quit();
358+
}
359+
});
360+
355361
app.on('ready', function() {
356362
// install development tools (devtron, react tools) if in development mode
357363
if (process.env.NODE_ENV === 'development') {

0 commit comments

Comments
 (0)