diff options
Diffstat (limited to 'resources/qml/PrinterOutput/HeatedBedBox.qml')
-rw-r--r-- | resources/qml/PrinterOutput/HeatedBedBox.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/qml/PrinterOutput/HeatedBedBox.qml b/resources/qml/PrinterOutput/HeatedBedBox.qml index 77421c8aad..2e3e319c89 100644 --- a/resources/qml/PrinterOutput/HeatedBedBox.qml +++ b/resources/qml/PrinterOutput/HeatedBedBox.qml @@ -193,22 +193,22 @@ Item anchors.verticalCenter: parent.verticalCenter renderType: Text.NativeRendering - Component.onCompleted: + text: { if (!bedTemperature.properties.value) { - text = ""; + return ""; } if ((bedTemperature.resolve != "None" && bedTemperature.resolve) && (bedTemperature.stackLevels[0] != 0) && (bedTemperature.stackLevels[0] != 1)) { // We have a resolve function. Indicates that the setting is not settable per extruder and that // we have to choose between the resolved value (default) and the global value // (if user has explicitly set this). - text = bedTemperature.resolve; + return bedTemperature.resolve; } else { - text = bedTemperature.properties.value; + return bedTemperature.properties.value; } } } |