ELECTRON-549: support not quitting app on mac upon closing window (#394)

This commit is contained in:
Vishwas Shashidhar
2018-06-11 12:03:10 +05:30
committed by GitHub
parent 974b532636
commit 543e9c44ef
2 changed files with 6 additions and 2 deletions

View File

@@ -169,7 +169,9 @@ app.on('ready', () => {
* In which case we quit the app
*/
app.on('window-all-closed', function() {
app.quit();
if (!isMac) {
app.quit();
}
});
/**

View File

@@ -289,7 +289,9 @@ function doCreateMainWindow(initialUrl, initialBounds, isCustomTitleBar) {
e.preventDefault();
mainWindow.minimize();
} else {
app.quit();
if (!isMac) {
app.quit();
}
}
});