mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 07:24:07 +00:00
Only install main window global hotkey if it is actually enabled.
This commit is contained in:
parent
83115adf6e
commit
06e62ae682
|
@ -1320,6 +1320,7 @@ void MainWindow::installHotKeys()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( cfg.preferences.enableMainWindowHotkey )
|
||||||
hotkeyWrapper->setGlobalKey( cfg.preferences.mainWindowHotkey.key1,
|
hotkeyWrapper->setGlobalKey( cfg.preferences.mainWindowHotkey.key1,
|
||||||
cfg.preferences.mainWindowHotkey.key2,
|
cfg.preferences.mainWindowHotkey.key2,
|
||||||
cfg.preferences.mainWindowHotkey.modifiers,
|
cfg.preferences.mainWindowHotkey.modifiers,
|
||||||
|
|
Loading…
Reference in a new issue