Browse Source

Early cop-out if there is no printer connected

This indeterminate state is never visible, since showProgress is false then, but it might prevent some error message behind the scenes.

Contributes to issue CURA-2060.
Ghostkeeper 8 years ago
parent
commit
99f53cb832
1 changed files with 4 additions and 0 deletions
  1. 4 0
      resources/qml/MonitorButton.qml

+ 4 - 0
resources/qml/MonitorButton.qml

@@ -161,6 +161,10 @@ Rectangle
         visible: showProgress;
         indeterminate:
         {
+            if (!printerConnected)
+            {
+                return true;
+            }
             switch(Cura.MachineManager.printerOutputDevices[0].jobState)
             {
                 case "pausing":