From 06a0a0b95e0d98eb379989b851103d5a7dbda562 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Wed, 5 Oct 2016 13:35:12 +0200 Subject: [PATCH] Progress bar never indeterminate if invisible Because if the progress bar is indeterminate, it triggers redraws for every frame to create the animation of the progress bar bouncing, regardless of whether it is visible or not. So now we make it indeterminate regardless of what state it is in. Contributes to issue CURA-2497. --- resources/qml/MonitorButton.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/qml/MonitorButton.qml b/resources/qml/MonitorButton.qml index 607d0a24ca..8bd593dd11 100644 --- a/resources/qml/MonitorButton.qml +++ b/resources/qml/MonitorButton.qml @@ -161,6 +161,10 @@ Rectangle visible: showProgress; indeterminate: { + if(!showProgress) + { + return false; //Never be indeterminate when not visible, since that triggers a redraw of the screen. + } switch(Cura.MachineManager.printerOutputDevices[0].jobState) { case "pausing":