mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
ELECTRON-1445: fix minimise on close behaviour on macOS (#750)
This commit is contained in:
parent
d5d59d3861
commit
5abe7805b1
@ -244,9 +244,16 @@ export class WindowHandler {
|
||||
const {minimizeOnClose} = config.getConfigFields(['minimizeOnClose']);
|
||||
if (minimizeOnClose) {
|
||||
event.preventDefault();
|
||||
isMac ? this.mainWindow.hide() : this.mainWindow.minimize();
|
||||
this.mainWindow.minimize();
|
||||
return;
|
||||
}
|
||||
|
||||
if (isMac) {
|
||||
event.preventDefault();
|
||||
this.mainWindow.hide();
|
||||
return;
|
||||
}
|
||||
|
||||
app.quit();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user