mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 04:07:57 -06:00
Add enabled state to printer, so that it can be displayed.
This ensures that if a printer is set to "Not available", that the interface can correctly show it CL-896
This commit is contained in:
parent
3969463758
commit
dd778f0450
4 changed files with 25 additions and 1 deletions
|
@ -192,7 +192,18 @@ Component
|
|||
Label
|
||||
{
|
||||
id: activeJobLabel
|
||||
text: modelData.activePrintJob != null ? modelData.activePrintJob.name : "waiting"
|
||||
text:
|
||||
{
|
||||
if(!modelData.enabled)
|
||||
{
|
||||
return catalog.i18nc("@label:status", "Not available")
|
||||
}
|
||||
if(modelData.activePrintjob != null)
|
||||
{
|
||||
return modelData.activePrintJob.name
|
||||
}
|
||||
return catalog.i18nc("@label:status", "Waiting")
|
||||
}
|
||||
anchors.top: machineNameLabel.bottom
|
||||
width: parent.width
|
||||
elide: Text.ElideRight
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue