mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 16:57:51 -06:00
Hide queue in Monitor page if printer does not support it
CURA-7784
This commit is contained in:
parent
e8e90e398a
commit
adc8072991
3 changed files with 11 additions and 2 deletions
|
@ -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."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue