diff options
author | Simon Edwards <s.edwards@ultimaker.com> | 2017-10-12 14:44:03 +0300 |
---|---|---|
committer | Simon Edwards <s.edwards@ultimaker.com> | 2017-10-12 14:44:03 +0300 |
commit | eef4d61402bdcedc283a0967ceea4ece82b342b3 (patch) | |
tree | 9c5eacb10b2e04c2c3ed0a013d01067eabc4dd74 | |
parent | 427afdbe23c45604ecc28c2fe287e18733d7b4be (diff) |
Correct the status message when a printer needs a config change but is unreachable
CL-508
-rw-r--r-- | plugins/UM3NetworkPrinting/PrinterInfoBlock.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml b/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml index ab944d0dcc..1ced5e8233 100644 --- a/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml +++ b/plugins/UM3NetworkPrinting/PrinterInfoBlock.qml @@ -257,6 +257,11 @@ Rectangle return catalog.i18nc("@label:status", "Disabled"); } + if (printer.status === "unreachable") + { + return printerStatusText(printer); + } + if (printJob != null) { switch (printJob.status) @@ -327,6 +332,12 @@ Rectangle { return "blocked-icon.svg"; } + + if (printer.status === "unreachable") + { + return ""; + } + if (printJob != null) { if(printJob.status === "queued") @@ -378,6 +389,11 @@ Rectangle return catalog.i18nc("@label", "Not accepting print jobs"); } + if (printer.status === "unreachable") + { + return ""; + } + if(printJob != null) { switch (printJob.status) |