Merge PR #79: fix bool param initialisation

This commit is contained in:
Jenkins 2018-11-12 11:15:02 +01:00
commit 78ca373016
2 changed files with 6 additions and 1 deletions

View File

@ -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;
}

View File

@ -131,5 +131,4 @@ Page {
}
}
}
}