Add unit to maximum temperature indication

Contributes to issue CURA-3161.
This commit is contained in:
Ghostkeeper 2017-02-08 14:00:06 +01:00
parent 1395735ece
commit bcab0d7be9
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -210,8 +210,7 @@ Column
} }
Label //Maximum temperature indication. Label //Maximum temperature indication.
{ {
text: bedTemperature.properties.maximum_value text: (bedTemperature.properties.maximum_value != "None" ? bedTemperature.properties.maximum_value : "") + "°C"
visible: bedTemperature.properties.maximum_value != "None"
color: UM.Theme.getColor("setting_unit") color: UM.Theme.getColor("setting_unit")
font: UM.Theme.getFont("default") font: UM.Theme.getFont("default")
anchors.right: parent.right anchors.right: parent.right