CURA-1615 - Updating for API 3

This updates the firmware updater to use the new MachineManagerModel

Additionally renamed "machine_type" to "machine_id", which makes it more
selfexplaining, when reading the code.

My printers firmware is not available here and has no heated bed, so
please test this commit!
This commit is contained in:
Thomas Karl Pietrowski 2016-06-15 10:04:47 +02:00
parent 11798a0d42
commit 9e6f5a4a68
3 changed files with 19 additions and 11 deletions

View file

@ -485,6 +485,13 @@ class MachineManagerModel(QObject):
return False
@pyqtProperty(bool, notify = globalContainerChanged)
def hasHeatedBed(self):
if self._active_container_stack:
return bool(self._global_container_stack.getMetaDataEntry("machine_heated_bed", False))
return False
@pyqtProperty(bool, notify = globalContainerChanged)
def hasVariants(self):
if self._active_container_stack: