Show context menu on printers with firmware 5.3 or later

This commit is contained in:
ChrisTerBeke 2019-06-20 12:36:15 +02:00
parent 6cbe89f832
commit 93351ec9b9
7 changed files with 27 additions and 14 deletions

View file

@ -140,6 +140,11 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
if self._printer_selection_dialog is not None:
self._printer_selection_dialog.show()
## Whether the printer that this output device represents supports print job actions via the local network.
@pyqtProperty(bool, constant=True)
def supportsPrintJobActions(self) -> bool:
return True
@pyqtProperty(int, constant=True)
def clusterSize(self) -> int:
return self._cluster_size