Skip to content

Commit e6810ef

Browse files
authored
Fix toggle tray wont restore from tray (#7735)
2 parents 5dd21ac + ef86e19 commit e6810ef

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/server/src/services/window.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,11 @@ async function registerGlobalShortcuts() {
342342
return;
343343
}
344344

345-
// window may be hidden / not in focus
346-
showAndFocusWindow(targetWindow);
345+
if (action.actionName === "toggleTray") {
346+
targetWindow.focus();
347+
} else {
348+
showAndFocusWindow(targetWindow);
349+
}
347350

348351
targetWindow.webContents.send("globalShortcut", action.actionName);
349352
})

0 commit comments

Comments
 (0)