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.
This commit is contained in:
Ghostkeeper 2016-10-05 13:35:12 +02:00
parent 8a5026bdb1
commit 06a0a0b95e
No known key found for this signature in database
GPG key ID: 701948C5954A7385

View file

@ -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":