Add canUpdateFirmware property to printer output devices

This commit is contained in:
fieldOfView 2018-08-08 15:53:26 +02:00
parent 339987be9d
commit 688a5083d2
5 changed files with 11 additions and 1 deletions

View file

@ -277,6 +277,13 @@ class PrinterOutputModel(QObject):
return self._controller.can_control_manually
return False
# Does the printer support upgrading firmware
@pyqtProperty(bool, notify = canUpdateFirmwareChanged)
def canUpdateFirmware(self):
if self._controller:
return self._controller.can_update_firmware
return False
# Returns the configuration (material, variant and buildplate) of the current printer
@pyqtProperty(QObject, notify = configurationChanged)
def printerConfiguration(self):