linux,快捷键不关闭窗口
parent
9d7d70e38e
commit
7f661ae45c
|
@ -284,7 +284,16 @@ function initApp () {
|
||||||
app.whenReady().then(() => {
|
app.whenReady().then(() => {
|
||||||
globalShortcut.unregisterAll()
|
globalShortcut.unregisterAll()
|
||||||
if (DevSidecar.api.config.get().app.showHideShortcut) {
|
if (DevSidecar.api.config.get().app.showHideShortcut) {
|
||||||
globalShortcut.register(DevSidecar.api.config.get().app.showHideShortcut, switchWin)
|
globalShortcut.register(DevSidecar.api.config.get().app.showHideShortcut, () => {
|
||||||
|
if (winIsHidden) {
|
||||||
|
showWin()
|
||||||
|
} else {
|
||||||
|
// linux,快捷键不关闭窗口
|
||||||
|
if (!isLinux()) {
|
||||||
|
hideWin()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue