mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Show different state when printer is disabled
CL-896
This commit is contained in:
parent
132366fa61
commit
be4357c635
1 changed files with 12 additions and 1 deletions
|
@ -192,7 +192,18 @@ Component
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
id: activeJobLabel
|
id: activeJobLabel
|
||||||
text: modelData.activePrintJob != null ? modelData.activePrintJob.name : "waiting"
|
text:
|
||||||
|
{
|
||||||
|
if (modelData.state == "disabled")
|
||||||
|
{
|
||||||
|
return catalog.i18nc("@label", "Not available")
|
||||||
|
}
|
||||||
|
if (modelData.activePrintJob != null)
|
||||||
|
{
|
||||||
|
return modelData.activePrintJob.name
|
||||||
|
}
|
||||||
|
return catalog.i18nc("@label", "Waiting")
|
||||||
|
}
|
||||||
anchors.top: machineNameLabel.bottom
|
anchors.top: machineNameLabel.bottom
|
||||||
width: parent.width
|
width: parent.width
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue