mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Test fixes, not working yet
This commit is contained in:
parent
73b423138a
commit
882352c99d
2 changed files with 10 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ class ExtruderConfigurationModel(QObject):
|
|||
return self._position
|
||||
|
||||
def setMaterial(self, material: Optional[MaterialOutputModel]) -> None:
|
||||
if self._hotend_id != material:
|
||||
if self._material != material:
|
||||
self._material = material
|
||||
self.extruderConfigurationChanged.emit()
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ class ExtruderConfigurationModel(QObject):
|
|||
def activeMaterial(self) -> Optional[MaterialOutputModel]:
|
||||
return self._material
|
||||
|
||||
@pyqtProperty(QObject, fset=setMaterial, notify=extruderConfigurationChanged)
|
||||
@pyqtProperty(QObject, fset = setMaterial, notify = extruderConfigurationChanged)
|
||||
def material(self) -> Optional[MaterialOutputModel]:
|
||||
return self._material
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue