mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07: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
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ Column
|
||||||
|
|
||||||
Label //Extruder name.
|
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")
|
color: UM.Theme.getColor("text")
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue