mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
ELECTRON-563: fix main window close issue on macOS (#398)
This commit is contained in:
parent
47ac213477
commit
5ad72399cf
@ -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