mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 03:35:57 +08:00
Clean-up printer status label
Contributes to CL-1153
This commit is contained in:
parent
325137db83
commit
e8a933331c
@ -179,13 +179,15 @@ Item
|
|||||||
color: "#414054" // TODO: Theme!
|
color: "#414054" // TODO: Theme!
|
||||||
font: UM.Theme.getFont("large") // 16pt, bold
|
font: UM.Theme.getFont("large") // 16pt, bold
|
||||||
text: {
|
text: {
|
||||||
if (printer && printer.state == "disabled"){
|
if (printer && printer.state == "disabled")
|
||||||
|
{
|
||||||
return catalog.i18nc("@label:status", "Unavailable")
|
return catalog.i18nc("@label:status", "Unavailable")
|
||||||
}
|
}
|
||||||
if (printer && printer.state == "unreachable"){
|
if (printer && printer.state == "unreachable")
|
||||||
return catalog.i18nc("@label:status", "Unavailable")
|
{
|
||||||
|
return catalog.i18nc("@label:status", "Unreachable")
|
||||||
}
|
}
|
||||||
if (printer && !printer.activePrintJob)
|
if (printer && printer.state == "idle")
|
||||||
{
|
{
|
||||||
return catalog.i18nc("@label:status", "Idle")
|
return catalog.i18nc("@label:status", "Idle")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user