diff options
| author | xiphon <xiphon@protonmail.com> | 2019-11-04 21:40:45 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2019-11-04 21:47:38 +0000 |
| commit | 5fe6b48517d0182e6378a84e349a1d0ab17f160a (patch) | |
| tree | 58c211d062cca6966b050f218cb501a8850a04c2 /components | |
| parent | 7f7a39292c57f9b51090005d8a8e39297d988e0b (diff) | |
| download | monzero-gui-5fe6b48517d0182e6378a84e349a1d0ab17f160a.tar.gz monzero-gui-5fe6b48517d0182e6378a84e349a1d0ab17f160a.tar.xz monzero-gui-5fe6b48517d0182e6378a84e349a1d0ab17f160a.zip | |
Settings: fix 'Light theme' checkbox
Diffstat (limited to 'components')
| -rw-r--r-- | components/CheckBox.qml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/CheckBox.qml b/components/CheckBox.qml index 1fec83ea..99ea6416 100644 --- a/components/CheckBox.qml +++ b/components/CheckBox.qml @@ -40,6 +40,7 @@ Item { property string uncheckedIcon property int imgWidth: 13 property int imgHeight: 13 + property bool toggleOnClick: true property bool checked: false property alias background: backgroundRect.color property bool border: true @@ -51,7 +52,9 @@ Item { width: checkBoxLayout.width function toggle(){ - checkBox.checked = !checkBox.checked + if (checkBox.toggleOnClick) { + checkBox.checked = !checkBox.checked + } checkBox.clicked() } |
