Add binding to current maximum bed temperature

Instead of the MAXTEMP placeholder.

Contributes to issue CURA-3161.
This commit is contained in:
Ghostkeeper 2017-02-06 15:09:18 +01:00
parent 3fb625109e
commit 27ff55d75b
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -209,7 +209,7 @@ Column
}
Label //Maximum temperature indication.
{
text: "MAXTEMP" //TODO: Placeholder!
text: bedTemperature.properties.maximum_value
color: UM.Theme.getColor("setting_unit")
font: UM.Theme.getFont("default")
anchors.right: parent.right
@ -264,6 +264,15 @@ Column
}
}
UM.SettingPropertyProvider
{
id: bedTemperature
containerStackId: Cura.MachineManager.activeMachineId
key: "material_bed_temperature"
watchedProperties: ["value", "minimum_value", "maximum_value", "minimum_value_warning", "maximum_value_warning"]
storeIndex: 0
}
Loader
{
sourceComponent: monitorSection