mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
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:
parent
11798a0d42
commit
9e6f5a4a68
3 changed files with 19 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue