mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:59:02 +08:00
Merge branch 'fix_preheat_fields' of https://github.com/fieldOfView/Cura
This commit is contained in:
commit
d041131f84
@ -209,15 +209,15 @@ Item
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
renderType: Text.NativeRendering
|
||||
|
||||
Component.onCompleted:
|
||||
text:
|
||||
{
|
||||
if (!extruderTemperature.properties.value)
|
||||
{
|
||||
text = "";
|
||||
return "";
|
||||
}
|
||||
else
|
||||
{
|
||||
text = extruderTemperature.properties.value;
|
||||
return extruderTemperature.properties.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user