Fix getting ability to preheat from extruder

This commit is contained in:
fieldOfView 2018-01-18 00:05:16 +01:00
parent b68a30662a
commit 0f0b1c6795

View file

@ -35,6 +35,13 @@ class ExtruderOutputModel(QObject):
def getPosition(self):
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)
def activeMaterial(self) -> "MaterialOutputModel":
return self._active_material