Hide queue in Monitor page if printer does not support it

CURA-7784
This commit is contained in:
Kostas Karmas 2020-10-30 12:44:59 +01:00
parent e8e90e398a
commit adc8072991
3 changed files with 11 additions and 2 deletions

View file

@ -287,6 +287,12 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
firmware_version = Version([version_number[0], version_number[1], version_number[2]])
return firmware_version >= self.PRINT_JOB_ACTIONS_MIN_VERSION
@pyqtProperty(bool)
def supportsPrintJobQueue(self) -> bool:
"""Gets whether the printer supports a queue"""
return "queue" in self._cluster.capabilities if self._cluster.capabilities else False
def setJobState(self, print_job_uuid: str, state: str) -> None:
"""Set the remote print job state."""