mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-22 04:19:54 +00:00
don't crash if no global spawn hotkey is assigned (#540)
This commit is contained in:
parent
216f5c2213
commit
9440d687d3
@ -86,7 +86,7 @@ export class HotkeysService {
|
|||||||
|
|
||||||
registerGlobalHotkey () {
|
registerGlobalHotkey () {
|
||||||
this.electron.globalShortcut.unregisterAll()
|
this.electron.globalShortcut.unregisterAll()
|
||||||
let value = this.config.store.hotkeys['toggle-window']
|
let value = this.config.store.hotkeys['toggle-window'] || []
|
||||||
if (typeof value === 'string') {
|
if (typeof value === 'string') {
|
||||||
value = [value]
|
value = [value]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user