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.
This commit is contained in:
Ghostkeeper 2016-09-28 09:36:06 +02:00
parent 2bdb388ad5
commit 99f53cb832
No known key found for this signature in database
GPG key ID: 701948C5954A7385

View file

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