From 17c020b3cda7d22978edd2cd66ca726f59ed91bb Mon Sep 17 00:00:00 2001 From: Asteroids <80862144+asteroids1975@users.noreply.github.com> Date: Sat, 4 Feb 2023 01:26:00 +0100 Subject: [PATCH] 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) --- resources/qml/PrinterOutput/HeatedBedBox.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/qml/PrinterOutput/HeatedBedBox.qml b/resources/qml/PrinterOutput/HeatedBedBox.qml index 8a1d13524f..172606c56d 100644 --- a/resources/qml/PrinterOutput/HeatedBedBox.qml +++ b/resources/qml/PrinterOutput/HeatedBedBox.qml @@ -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 @@ -293,4 +293,4 @@ Item } } } -} \ No newline at end of file +}