mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-29 15:25:02 +08:00
Fix decimals on heated bed temperature monitor (HeatedBedBox.qml)
Round heated bed temperature values when printer sends them with decimal digits. Same roundings already exist on the extruder temperatures (see ExtruderBox.qml line 50 and 85)
This commit is contained in:
parent
8134cce3b8
commit
17c020b3cd
@ -32,7 +32,7 @@ Item
|
||||
UM.Label
|
||||
{
|
||||
id: bedTargetTemperature
|
||||
text: printerModel != null ? printerModel.targetBedTemperature + "°C" : ""
|
||||
text: printerModel != null ? Math.round(printerModel.targetBedTemperature) + "°C" : ""
|
||||
font: UM.Theme.getFont("default_bold")
|
||||
color: UM.Theme.getColor("text_inactive")
|
||||
anchors.right: parent.right
|
||||
@ -66,7 +66,7 @@ Item
|
||||
UM.Label
|
||||
{
|
||||
id: bedCurrentTemperature
|
||||
text: printerModel != null ? printerModel.bedTemperature + "°C" : ""
|
||||
text: printerModel != null ? Math.round(printerModel.bedTemperature) + "°C" : ""
|
||||
font: UM.Theme.getFont("large_bold")
|
||||
anchors.right: bedTargetTemperature.left
|
||||
anchors.top: parent.top
|
||||
|
Loading…
x
Reference in New Issue
Block a user