From 0e3524cddbc4e93bc9b853cb7282b9b3b7f08412 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Fri, 17 Dec 2021 11:50:45 +0100 Subject: [PATCH] Reintroduce hack for waiting state in monitor. Some printers don't send the correct state it seems, so we have to have this hack back. CURA-8764 --- .../resources/qml/MonitorPrintJobProgressBar.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/UM3NetworkPrinting/resources/qml/MonitorPrintJobProgressBar.qml b/plugins/UM3NetworkPrinting/resources/qml/MonitorPrintJobProgressBar.qml index f698bd948e..23bcc589b1 100644 --- a/plugins/UM3NetworkPrinting/resources/qml/MonitorPrintJobProgressBar.qml +++ b/plugins/UM3NetworkPrinting/resources/qml/MonitorPrintJobProgressBar.qml @@ -73,6 +73,12 @@ Item switch (printJob.state) { case "wait_cleanup": + // This hack was removed previously. Then we found out that we don't get back 'aborted_wait_cleanup' + // for the UM2+C it seems. Will communicate this to other teams, in the mean time, put this back. + if (printJob.timeTotal > printJob.timeElapsed) + { + return catalog.i18nc("@label:status", "Aborted"); + } return catalog.i18nc("@label:status", "Finished"); case "finished": return catalog.i18nc("@label:status", "Finished");