mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 02:35:53 +08:00
Make extruder name recover if it returns null
If it returns null, you'd get an error that it can't assign [undefined] to a text field. Contributes to issue CURA-3161.
This commit is contained in:
parent
2f8fc05181
commit
b69ec56f66
@ -88,7 +88,7 @@ Column
|
||||
|
||||
Label //Extruder name.
|
||||
{
|
||||
text: machineExtruderCount.properties.value > 1 ? extrudersModel.getItem(index).name : catalog.i18nc("@label", "Hotend")
|
||||
text: (machineExtruderCount.properties.value > 1 && extrudersModel.getItem(index).name != null) ? extrudersModel.getItem(index).name : catalog.i18nc("@label", "Hotend")
|
||||
color: UM.Theme.getColor("text")
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
|
Loading…
x
Reference in New Issue
Block a user