mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
close app when all windows close (except on mac)
This commit is contained in:
parent
36ff1608bb
commit
05035b2455
@ -613,6 +613,11 @@ function makeAppMenu() {
|
||||
electron.Menu.setApplicationMenu(menu);
|
||||
}
|
||||
|
||||
electron.app.on("window-all-closed", () => {
|
||||
if (unamePlatform !== "darwin") {
|
||||
electron.app.quit();
|
||||
}
|
||||
});
|
||||
electron.app.on("before-quit", () => {
|
||||
globalIsQuitting = true;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user