Skip to content

Commit

Permalink
Disable hot keyselection when global hotkeys read only #254
Browse files Browse the repository at this point in the history
  • Loading branch information
DamirPorobic committed Feb 23, 2020
1 parent f1988aa commit 792716e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/settingsDialog/HotKeySettings.cpp
Expand Up @@ -117,11 +117,12 @@ void HotKeySettings::loadConfig()
mCurrentScreenKeySequenceLineEdit->setValue(mConfig->currentScreenHotKey());
mActiveWindowKeySequenceLineEdit->setValue(mConfig->activeWindowHotKey());
mWindowUnderCursorKeySequenceLineEdit->setValue(mConfig->windowUnderCursorHotKey());
globalHotKeysStateChanged();
}

void HotKeySettings::globalHotKeysStateChanged()
{
auto hotKeysEnabled = mEnableGlobalHotKeysCheckBox->isChecked();
auto hotKeysEnabled = mEnableGlobalHotKeysCheckBox->isChecked() && mEnableGlobalHotKeysCheckBox->isEnabled();
mRectAreaLabel->setEnabled(hotKeysEnabled);
mLastRectAreaLabel->setEnabled(hotKeysEnabled);
mFullScreenLabel->setEnabled(hotKeysEnabled);
Expand Down

0 comments on commit 792716e

Please sign in to comment.