mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 20:26:00 +08:00
Make SettingCheckBox properly handle the value
This commit is contained in:
parent
5b31634d3c
commit
06432c3b0b
@ -19,20 +19,19 @@ SettingItem
|
||||
|
||||
property bool checked:
|
||||
{
|
||||
if(value == "True")
|
||||
switch(propertyProvider.properties.value)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else if(value == "False")
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return value;
|
||||
case "True":
|
||||
return true
|
||||
case "False":
|
||||
return false
|
||||
default:
|
||||
return propertyProvider.properties.value
|
||||
}
|
||||
}
|
||||
|
||||
onClicked: propertyProvider.setPropertyValue("value", !checked)
|
||||
|
||||
Rectangle
|
||||
{
|
||||
anchors
|
||||
|
Loading…
x
Reference in New Issue
Block a user