mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
ELECTRON-549: support not quitting app on mac upon closing window (#394)
This commit is contained in:
committed by
GitHub
parent
974b532636
commit
543e9c44ef
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
@@ -289,7 +289,9 @@ function doCreateMainWindow(initialUrl, initialBounds, isCustomTitleBar) {
|
||||
e.preventDefault();
|
||||
mainWindow.minimize();
|
||||
} else {
|
||||
app.quit();
|
||||
if (!isMac) {
|
||||
app.quit();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user