mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Add canUpdateFirmware property to printer output devices
This commit is contained in:
parent
339987be9d
commit
688a5083d2
5 changed files with 11 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue