mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 12:17:50 -06:00
Optimize MaterialsModel update
CURA-4546
This commit is contained in:
parent
1db448d7d8
commit
2397b68cd7
1 changed files with 5 additions and 1 deletions
|
@ -18,4 +18,8 @@ class MaterialsModel(InstanceContainersModel):
|
|||
# \param container The container whose metadata was changed.
|
||||
def _onContainerMetaDataChanged(self, container):
|
||||
if container.getMetaDataEntry("type") == "material": #Only need to update if a material was changed.
|
||||
self._update()
|
||||
self._update()
|
||||
|
||||
def _onContainerChanged(self, container):
|
||||
if container.getMetaDataEntry("type", "") == "material":
|
||||
super()._onContainerChanged(container)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue