fix bool param initialisation
This commit is contained in:
parent
4584791a62
commit
a3f704a1dc
@ -89,6 +89,12 @@ ItemDelegate {
|
||||
id: boolComponent
|
||||
Switch {
|
||||
checked: root.param.value === true
|
||||
Component.onCompleted: {
|
||||
if (root.param.value === undefined) {
|
||||
root.param.value = checked;
|
||||
}
|
||||
}
|
||||
|
||||
onClicked: {
|
||||
root.param.value = checked;
|
||||
}
|
||||
|
||||
@ -131,5 +131,4 @@ Page {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user