Fix hotkey hiding on Windows

This commit is contained in:
Jonatan Heyman 2023-12-11 00:31:40 +01:00
parent d5ea4c77ab
commit 388f2e1cc0

View File

@ -157,7 +157,12 @@ function registerGlobalHotkey() {
return
}
if (win.isFocused()) {
app.hide()
if (!!app.hide) {
// app.hide() only available on macOS
app?.hide()
} else {
win.blur()
}
} else {
app.focus({steal: true})
if (win.isMinimized()) {