mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 06:05:52 +08:00
Fix getting ability to preheat from extruder
This commit is contained in:
parent
b68a30662a
commit
0f0b1c6795
@ -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…
x
Reference in New Issue
Block a user