Skip to content

Commit

Permalink
fix: quit app when click close button.
Browse files Browse the repository at this point in the history
  • Loading branch information
cangzhang committed Apr 12, 2020
1 parent 69ab470 commit 994f0df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/toolbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Toolbar = () => {
remote.BrowserWindow.getFocusedWindow().minimize();
};
const onClose = () => {
remote.BrowserWindow.getFocusedWindow().close();
remote.app.quit();
};

return <div className={s.toolbar}>
Expand Down

0 comments on commit 994f0df

Please sign in to comment.