Skip to content

Commit

Permalink
refactor: remove unnecessary dock hide logic for macOS
Browse files Browse the repository at this point in the history
this was causing the app to be hidden from the Dock and it's not the expected behavior from users in macOS
  • Loading branch information
panoramix360 committed Jan 7, 2025
1 parent b17422d commit 8d095ca
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions electron/main-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,6 @@ const appCloseHandler = (app: App): void => {
getSettings(mainWin, (appCfg: GlobalConfigState) => {
if (appCfg && appCfg.misc.isMinimizeToTray && !(app as any).isQuiting) {
mainWin.hide();

if (IS_MAC) {
app.dock.hide();
}
return;
}

Expand Down Expand Up @@ -276,9 +272,6 @@ const appMinimizeHandler = (app: App): void => {
if (appCfg.misc.isMinimizeToTray) {
event.preventDefault();
mainWin.hide();
if (IS_MAC) {
app.dock.hide();
}
} else if (IS_MAC) {
app.dock.show();
}
Expand Down

0 comments on commit 8d095ca

Please sign in to comment.