Fix values in print monitor preheat fields

Contributes to #7172
This commit is contained in:
fieldOfView 2020-02-28 12:27:57 +01:00
parent 9e94875733
commit d07649fc59
2 changed files with 7 additions and 7 deletions

View file

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