mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-28 09:51:06 -06:00
ELECTRON-563: fix main window close issue on macOS (#399)
- fix main window close issue on macOS
This commit is contained in:
parent
a52c46bb6e
commit
5c3818d5ad
@ -169,9 +169,7 @@ app.on('ready', () => {
|
||||
* In which case we quit the app
|
||||
*/
|
||||
app.on('window-all-closed', function() {
|
||||
if (!isMac) {
|
||||
app.quit();
|
||||
}
|
||||
app.quit();
|
||||
});
|
||||
|
||||
/**
|
||||
|
@ -288,10 +288,11 @@ function doCreateMainWindow(initialUrl, initialBounds, isCustomTitleBar) {
|
||||
if (getMinimizeOnClose()) {
|
||||
e.preventDefault();
|
||||
mainWindow.minimize();
|
||||
} else if (isMac) {
|
||||
e.preventDefault();
|
||||
mainWindow.hide();
|
||||
} else {
|
||||
if (!isMac) {
|
||||
app.quit();
|
||||
}
|
||||
app.quit();
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user