mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-30 15:54:32 +08:00
Stop logging spam by checking before setting property.
CURA-9793
This commit is contained in:
parent
1224f076c3
commit
f99f1a4528
@ -58,5 +58,11 @@ Cura.ComboBox {
|
|||||||
function onIsValueUsedChanged() { comboboxModel.updateModel() }
|
function onIsValueUsedChanged() { comboboxModel.updateModel() }
|
||||||
}
|
}
|
||||||
|
|
||||||
onCurrentIndexChanged: propertyProvider.setPropertyValue("value", comboboxModel.get(currentIndex).code)
|
onCurrentIndexChanged:
|
||||||
|
{
|
||||||
|
if (comboboxModel.get(currentIndex) && comboboxModel.get(currentIndex).code)
|
||||||
|
{
|
||||||
|
propertyProvider.setPropertyValue("value", comboboxModel.get(currentIndex).code)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user