mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Fix getting ability to preheat from extruder
This commit is contained in:
parent
b68a30662a
commit
0f0b1c6795
1 changed files with 7 additions and 0 deletions
|
|
@ -35,6 +35,13 @@ class ExtruderOutputModel(QObject):
|
||||||
def getPosition(self):
|
def getPosition(self):
|
||||||
return self._position
|
return self._position
|
||||||
|
|
||||||
|
# Does the printer support pre-heating the bed at all
|
||||||
|
@pyqtProperty(bool, constant=True)
|
||||||
|
def canPreHeatHotends(self):
|
||||||
|
if self._printer:
|
||||||
|
return self._printer.canPreHeatHotends
|
||||||
|
return False
|
||||||
|
|
||||||
@pyqtProperty(QObject, notify = activeMaterialChanged)
|
@pyqtProperty(QObject, notify = activeMaterialChanged)
|
||||||
def activeMaterial(self) -> "MaterialOutputModel":
|
def activeMaterial(self) -> "MaterialOutputModel":
|
||||||
return self._active_material
|
return self._active_material
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue