mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 11:03:13 +08:00
Handle undefined extruder-color on start in RecommendedSupportSelector.
This commit is contained in:
parent
852e7bc8f6
commit
db71a40acc
@ -133,7 +133,14 @@ Item
|
|||||||
supportExtruderCombobox.color = supportExtruderCombobox.model.getItem(supportExtruderCombobox.currentIndex).color
|
supportExtruderCombobox.color = supportExtruderCombobox.model.getItem(supportExtruderCombobox.currentIndex).color
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onCurrentIndexChanged: supportExtruderCombobox.color = supportExtruderCombobox.model.getItem(supportExtruderCombobox.currentIndex).color
|
onCurrentIndexChanged:
|
||||||
|
{
|
||||||
|
var maybeColor = supportExtruderCombobox.model.getItem(supportExtruderCombobox.currentIndex).color
|
||||||
|
if(maybeColor)
|
||||||
|
{
|
||||||
|
supportExtruderCombobox.color = maybeColor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Binding
|
Binding
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user