Emit materialsChanged from the variant when a material gets added

This allows the material models to update themselves.

Contributes to issue CURA-6600.
This commit is contained in:
Ghostkeeper 2019-08-27 17:36:27 +02:00
parent 21412986d3
commit f5ca29c7aa
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
2 changed files with 3 additions and 3 deletions

View file

@ -96,7 +96,7 @@ class BaseMaterialsModel(ListModel):
self._update()
self.enabledChanged.emit()
@pyqtProperty(bool, fset=setEnabled, notify=enabledChanged)
@pyqtProperty(bool, fset = setEnabled, notify = enabledChanged)
def enabled(self):
return self._enabled
@ -169,4 +169,3 @@ class BaseMaterialsModel(ListModel):
"is_favorite": root_material_id in self._favorite_ids
}
return item