Merge pull request #5418 from Ultimaker/CL-1281_improve_idle_printer_empty_queue

CL-1281 Make sure to show printers even if queue is empty
This commit is contained in:
Simon Edwards 2019-03-11 17:20:39 +01:00 committed by GitHub
commit c07b0cdd00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,17 @@ Component
MonitorCarousel
{
id: carousel
printers: OutputDevice.receivedPrintJobs ? OutputDevice.printers : [null]
printers:
{
// 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.activeMachineIsUsingCloudConnection || OutputDevice.receivedPrintJobs)
{
return OutputDevice.printers
}
return [null]
}
}
}