Hide print queue if the user can't read the print queue

If there are no permissions, this would result in an error and a supposedly empty queue. That's incorrect. It should make it more clear that the user has no permissions to view the queue, while appearing that it is the normal workflow (it is for that user). So hide the queue entirely, just like with the UM2+C.

Contributes to issue CURA-9220.
This commit is contained in:
Ghostkeeper 2022-07-25 16:57:47 +02:00
parent 9e1940dd4b
commit bef10b8b35
No known key found for this signature in database
GPG key ID: FFBC62A75981ED70

View file

@ -69,7 +69,7 @@ Component
top: printers.bottom
topMargin: 48 * screenScaleFactor // TODO: Theme!
}
visible: OutputDevice.supportsPrintJobQueue
visible: OutputDevice.supportsPrintJobQueue && OutputDevice.canReadPrintJobs
}
PrinterVideoStream