Skip to content

Commit

Permalink
Quit on macos, fixes #1047
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoTheThird committed Oct 24, 2020
1 parent b5cc1a9 commit 2ca63cf
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,13 +528,11 @@ app.on("window-all-closed", function() {
.killServer()
.then(utils.killSubprocesses)
.catch(utils.killSubprocesses);
if (process.platform !== "darwin") {
utils.log.info("Good bye!");
setTimeout(() => {
app.quit();
process.exit(0);
}, 2000);
}
utils.log.info("Good bye!");
setTimeout(() => {
app.quit();
process.exit(0);
}, 2000);
});

app.on("activate", function() {
Expand Down Expand Up @@ -610,6 +608,11 @@ app.on("ready", function() {
accelerator: "CmdOrCtrl+W",
role: "close"
},
{
label: "Quit",
accelerator: "CmdOrCtrl+Q",
role: "close"
},
{
label: "Animations",
submenu: [
Expand Down

0 comments on commit 2ca63cf

Please sign in to comment.