Skip to content

Commit

Permalink
fix: quit application via window close icon
Browse files Browse the repository at this point in the history
This commit closes #33
  • Loading branch information
4gray committed Apr 10, 2021
1 parent 41998ff commit 24d5584
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ function createWindow(): BrowserWindow {
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
win = null;

if (process.platform !== 'darwin') {
app.quit();
}
});

return win;
Expand Down

0 comments on commit 24d5584

Please sign in to comment.