调整show_app快捷键功能的交互逻辑
This commit is contained in:
parent
26e3871688
commit
5dcc892f31
@ -22,7 +22,11 @@ function getShortcutHandler(shortcut: Shortcut) {
|
||||
case 'show_app':
|
||||
return (window: BrowserWindow) => {
|
||||
if (window.isVisible()) {
|
||||
if (window.isFocused()) {
|
||||
window.hide()
|
||||
} else {
|
||||
window.focus()
|
||||
}
|
||||
} else {
|
||||
window.show()
|
||||
window.focus()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user