Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
Fix exit to tray behavior (#432)
Browse files Browse the repository at this point in the history
* Fix exit to tray behavior
  • Loading branch information
jeffvli authored Mar 13, 2023
1 parent c805a49 commit 39019b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,10 @@ const createWindow = async () => {
});

mainWindow.on('close', (event) => {
if (!exitFromTray && !forceQuit && store.getState().config.window.exitToTray) {
exitFromTray = true;
if (!exitFromTray && store.getState().config.window.exitToTray) {
if (isMacOS() && !forceQuit) {
exitFromTray = true;
}
event.preventDefault();
mainWindow.hide();
}
Expand Down

0 comments on commit 39019b5

Please sign in to comment.