Fix toggle tray wont restore from tray (#7735)

This commit is contained in:
Elian Doran 2025-11-14 11:57:31 +02:00 committed by GitHub
commit e6810ef753
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -342,8 +342,11 @@ async function registerGlobalShortcuts() {
return; return;
} }
// window may be hidden / not in focus if (action.actionName === "toggleTray") {
targetWindow.focus();
} else {
showAndFocusWindow(targetWindow); showAndFocusWindow(targetWindow);
}
targetWindow.webContents.send("globalShortcut", action.actionName); targetWindow.webContents.send("globalShortcut", action.actionName);
}) })