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,10 +1320,11 @@ void MainWindow::installHotKeys()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
hotkeyWrapper->setGlobalKey( cfg.preferences.mainWindowHotkey.key1,
|
if ( cfg.preferences.enableMainWindowHotkey )
|
||||||
cfg.preferences.mainWindowHotkey.key2,
|
hotkeyWrapper->setGlobalKey( cfg.preferences.mainWindowHotkey.key1,
|
||||||
cfg.preferences.mainWindowHotkey.modifiers,
|
cfg.preferences.mainWindowHotkey.key2,
|
||||||
0 );
|
cfg.preferences.mainWindowHotkey.modifiers,
|
||||||
|
0 );
|
||||||
|
|
||||||
if ( cfg.preferences.enableClipboardHotkey && scanPopup.get() )
|
if ( cfg.preferences.enableClipboardHotkey && scanPopup.get() )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue