Prevent endless skeleton loading on Cloud

Contributes to CL-1154

For you @christerbeke
This commit is contained in:
Ian Paschal 2019-01-24 14:46:00 +01:00
parent cbed8038e9
commit 3d92bd0133

View file

@ -160,7 +160,17 @@ Item
} }
printJob: modelData printJob: modelData
} }
model: OutputDevice.receivedPrintJobs ? OutputDevice.queuedPrintJobs : [null,null] model:
{
// When printing over the cloud we don't recieve print jobs until there is one, so
// unless there's at least one print job we'll be stuck with skeleton loading
// indefinitely.
if (Cura.MachineManager.activeMachineHasActiveCloudConnection)
{
return OutputDevice.queuedPrintJobs
}
return OutputDevice.receivedPrintJobs ? OutputDevice.queuedPrintJobs : [null,null]
}
spacing: 6 // TODO: Theme! spacing: 6 // TODO: Theme!
} }
} }