make global shortcut work with windows in system tray

This commit is contained in:
contributor 2025-11-07 21:08:50 +02:00
parent a29597a4bf
commit 9a5f2f8d3b

View File

@ -343,6 +343,10 @@ async function registerGlobalShortcuts() {
}
// window may be hidden / not in focus
if (targetWindow.isMinimized()) {
targetWindow.restore();
}
targetWindow.show();
targetWindow.focus();
targetWindow.webContents.send("globalShortcut", action.actionName);