fix bool switch on timeinput
This commit is contained in:
@@ -130,7 +130,7 @@ Item {
|
|||||||
id: enabledSwitch
|
id: enabledSwitch
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignRight | Qt.AlignHCenter
|
||||||
checked: Config.general.color.scheduleDark
|
checked: root.object[root.settings[0]]
|
||||||
|
|
||||||
onToggled: {
|
onToggled: {
|
||||||
root.object[root.settings[0]] = checked;
|
root.object[root.settings[0]] = checked;
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ Item {
|
|||||||
id: enabledSwitch
|
id: enabledSwitch
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignRight | Qt.AlignHCenter
|
||||||
checked: Config.general.color.scheduleDark
|
checked: root.object[root.settings[0]]
|
||||||
|
|
||||||
onToggled: {
|
onToggled: {
|
||||||
root.object[root.settings[0]] = checked;
|
root.object[root.settings[0]] = checked;
|
||||||
|
|||||||
Reference in New Issue
Block a user