Simplify string notation

CURA-9278
This commit is contained in:
Casper Lamboo 2022-09-12 14:20:28 +02:00 committed by GitHub
parent e3fc73f17d
commit 96bc5ed602
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}`
}
}
}