diff options
author | kirillpt <kirp@dismail.de> | 2020-11-26 23:45:44 +0300 |
---|---|---|
committer | kirillpt <kirp@dismail.de> | 2020-11-26 23:45:44 +0300 |
commit | 5a3905b33720b98998c36100a07fb3a270acf47d (patch) | |
tree | 5a9976971ecad85590da754b4a14b22e83bb1917 /src/ui | |
parent | Merge pull request #343 from Kirillpt/fix/textFieldvalidation (diff) | |
download | nheko-5a3905b33720b98998c36100a07fb3a270acf47d.tar.xz |
change Toggle behavior
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/ToggleButton.cpp | 1 |
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(); } |