Add firmware check

Contributes to CL-1222
This commit is contained in:
Ian Paschal 2019-02-04 16:02:38 +01:00
parent 2a3a1d6e35
commit f2ddb2808f
3 changed files with 59 additions and 46 deletions

View file

@ -517,6 +517,12 @@ class MachineManager(QObject):
return self._global_container_stack.getId()
return ""
@pyqtProperty(str, notify = globalContainerChanged)
def activeMachineFirmwareVersion(self) -> str:
if not self._printer_output_devices[0]:
return ""
return self._printer_output_devices[0].firmwareVersion
@pyqtProperty(bool, notify = printerConnectedStatusChanged)
def printerConnected(self) -> bool:
return bool(self._printer_output_devices)