summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorkirillpt <kirp@dismail.de>2020-11-26 23:45:44 +0300
committerkirillpt <kirp@dismail.de>2020-11-26 23:45:44 +0300
commit5a3905b33720b98998c36100a07fb3a270acf47d (patch)
tree5a9976971ecad85590da754b4a14b22e83bb1917 /src/ui
parentMerge pull request #343 from Kirillpt/fix/textFieldvalidation (diff)
downloadnheko-5a3905b33720b98998c36100a07fb3a270acf47d.tar.xz
change Toggle behavior
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/ToggleButton.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/ToggleButton.cpp b/src/ui/ToggleButton.cpp
index 252232a1..40ea82ac 100644
--- a/src/ui/ToggleButton.cpp
+++ b/src/ui/ToggleButton.cpp
@@ -22,6 +22,7 @@ Toggle::Toggle(QWidget *parent)
 void
 Toggle::setState(bool isEnabled)
 {
+        setChecked(isEnabled);
         thumb_->setShift(isEnabled ? Position::Left : Position::Right);
         setupProperties();
 }