From 2fda85a6aab614005a488ba019dc33a4ae86f26b Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 21 Apr 2017 14:29:40 +0200 Subject: [PATCH] Hide estimated time left if print is aborted or completed In fact, only show it if a time estimate is meaningful. We keep showing the estimate while a print is paused though. Contributes to issue TRI-1550. --- resources/qml/PrintMonitor.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/qml/PrintMonitor.qml b/resources/qml/PrintMonitor.qml index 1b500d5b20..eacdc17883 100644 --- a/resources/qml/PrintMonitor.qml +++ b/resources/qml/PrintMonitor.qml @@ -649,6 +649,7 @@ Column sourceComponent: monitorItem property string label: catalog.i18nc("@label", "Estimated time left") property string value: connectedPrinter != null ? getPrettyTime(connectedPrinter.timeTotal - connectedPrinter.timeElapsed) : "" + visible: connectedPrinter != null && (connectedPrinter.jobState == "printing" || connectedPrinter.jobState == "resuming" || connectedPrinter.jobState == "pausing" || connectedPrinter.jobState == "paused") } Component