mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 13:34:01 -06:00
Simplify string notation
CURA-9278
This commit is contained in:
parent
e3fc73f17d
commit
96bc5ed602
1 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ Rectangle
|
|||
anchors.left: extruderCore.right
|
||||
anchors.verticalCenter: extruderCore.verticalCenter
|
||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||
text: modelData.materials.length == 1 ? modelData.materials[0].brand + " " + modelData.materials[0].name : ""
|
||||
text: modelData.materials.length == 1 ? `${modelData.materials[0].brand} ${modelData.materials[0].name}` : ""
|
||||
visible: modelData.materials.length == 1
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,7 @@ Rectangle
|
|||
model: modelData.materials
|
||||
UM.Label
|
||||
{
|
||||
text: modelData.brand + " " + modelData.name
|
||||
text: `${modelData.brand} ${modelData.name}`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue