mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
fix mac close button behaviour
This commit is contained in:
parent
fde0ffda43
commit
a1d80372d5
1 changed files with 6 additions and 6 deletions
12
app/index.ts
12
app/index.ts
|
|
@ -164,12 +164,6 @@ app.on('ready', () =>
|
|||
windowSet.delete(hwin);
|
||||
});
|
||||
|
||||
hwin.on('closed', () => {
|
||||
if (process.platform !== 'darwin' && windowSet.size === 0) {
|
||||
app.quit();
|
||||
}
|
||||
});
|
||||
|
||||
return hwin;
|
||||
}
|
||||
|
||||
|
|
@ -188,6 +182,12 @@ app.on('ready', () =>
|
|||
}
|
||||
});
|
||||
|
||||
app.on('window-all-closed', () => {
|
||||
if (process.platform !== 'darwin') {
|
||||
app.quit();
|
||||
}
|
||||
});
|
||||
|
||||
const makeMenu = () => {
|
||||
const menu = plugins.decorateMenu(AppMenu.createMenu(createWindow, plugins.getLoadedPluginVersions));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue