mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 01:39:03 +08:00
Show the printer unreachable status in the Cura Connect tab when needed.
CL-508
This commit is contained in:
parent
a5aa13f853
commit
b68707d29c
@ -39,7 +39,8 @@ Rectangle
|
|||||||
return catalog.i18nc("@label:status", "Printing");
|
return catalog.i18nc("@label:status", "Printing");
|
||||||
case "idle":
|
case "idle":
|
||||||
return catalog.i18nc("@label:status", "Available");
|
return catalog.i18nc("@label:status", "Available");
|
||||||
case "unreachable": // TODO: new string
|
case "unreachable":
|
||||||
|
return catalog.i18nc("@label:MonitorStatus", "Lost connection with the printer");
|
||||||
case "maintenance": // TODO: new string
|
case "maintenance": // TODO: new string
|
||||||
case "unknown":
|
case "unknown":
|
||||||
default:
|
default:
|
||||||
@ -165,6 +166,7 @@ Rectangle
|
|||||||
anchors.right: printProgressArea.left
|
anchors.right: printProgressArea.left
|
||||||
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
||||||
color: emphasisColor
|
color: emphasisColor
|
||||||
|
opacity: printer != null && printer.status === "unreachable" ? 0.3 : 1
|
||||||
|
|
||||||
Image
|
Image
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user