mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Fix updating of material models
CURA-6600
This commit is contained in:
parent
b5d826fab9
commit
47d082b5dc
2 changed files with 25 additions and 0 deletions
|
@ -34,6 +34,7 @@ class BaseMaterialsModel(ListModel):
|
|||
|
||||
# Update this model when switching machines
|
||||
self._machine_manager.activeStackChanged.connect(self._update)
|
||||
self._material_manager.materialsUpdated.connect(self._update)
|
||||
|
||||
self.addRoleName(Qt.UserRole + 1, "root_material_id")
|
||||
self.addRoleName(Qt.UserRole + 2, "id")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue