Show the printer unreachable status in the Cura Connect tab when needed.

CL-508
This commit is contained in:
Simon Edwards 2017-10-11 13:52:45 +02:00
parent a5aa13f853
commit b68707d29c

View File

@ -39,7 +39,8 @@ Rectangle
return catalog.i18nc("@label:status", "Printing");
case "idle":
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 "unknown":
default:
@ -165,6 +166,7 @@ Rectangle
anchors.right: printProgressArea.left
anchors.rightMargin: UM.Theme.getSize("default_margin").width
color: emphasisColor
opacity: printer != null && printer.status === "unreachable" ? 0.3 : 1
Image
{