mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 10:58:58 +01:00
Fix toggle tray wont restore from tray (#7735)
This commit is contained in:
commit
e6810ef753
@ -342,8 +342,11 @@ async function registerGlobalShortcuts() {
|
||||
return;
|
||||
}
|
||||
|
||||
// window may be hidden / not in focus
|
||||
if (action.actionName === "toggleTray") {
|
||||
targetWindow.focus();
|
||||
} else {
|
||||
showAndFocusWindow(targetWindow);
|
||||
}
|
||||
|
||||
targetWindow.webContents.send("globalShortcut", action.actionName);
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user