Просмотр исходного кода

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 лет назад
Родитель
Сommit
99f53cb832
1 измененных файлов с 4 добавлено и 0 удалено
  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":