From b68707d29c2ded76397b578b7edeb68fe38033d2 Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Wed, 11 Oct 2017 13:52:45 +0200 Subject: [PATCH] Show the printer unreachable status in the Cura Connect tab when needed. CL-508 --- plugins/UM3NetworkPrinting/PrinterInfoBlock.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml b/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml index 256c911918..005d719266 100644 --- a/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml +++ b/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml @@ -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 {