mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-19 01:15:52 +08:00
Change "Hotend temperature" to the name of the extruder
UXD-79
This commit is contained in:
parent
2963a64fc2
commit
505da1a9a7
@ -14,6 +14,8 @@ Column
|
|||||||
id: printMonitor
|
id: printMonitor
|
||||||
property var connectedPrinter: printerConnected ? Cura.MachineManager.printerOutputDevices[0] : null
|
property var connectedPrinter: printerConnected ? Cura.MachineManager.printerOutputDevices[0] : null
|
||||||
|
|
||||||
|
Cura.ExtrudersModel { id: extrudersModel }
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: printerConnected ? connectedPrinter.connectionText : catalog.i18nc("@label", "The printer is not connected.")
|
text: printerConnected ? connectedPrinter.connectionText : catalog.i18nc("@label", "The printer is not connected.")
|
||||||
@ -34,7 +36,7 @@ Column
|
|||||||
delegate: Loader
|
delegate: Loader
|
||||||
{
|
{
|
||||||
sourceComponent: monitorItem
|
sourceComponent: monitorItem
|
||||||
property string label: machineExtruderCount.properties.value > 1 ? catalog.i18nc("@label", "Hotend Temperature %1").arg(index + 1) : catalog.i18nc("@label", "Hotend Temperature")
|
property string label: machineExtruderCount.properties.value > 1 ? extrudersModel.getItem(index).name : catalog.i18nc("@label", "Hotend")
|
||||||
property string value: printerConnected ? Math.round(connectedPrinter.hotendTemperatures[index]) + "°C" : ""
|
property string value: printerConnected ? Math.round(connectedPrinter.hotendTemperatures[index]) + "°C" : ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user