mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Use timer instead of calling _update directly.
Speeds up when the signal is called very often in a small period. Contributes to issue CURA-4243.
This commit is contained in:
parent
ac97d0d83f
commit
c52451217b
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ 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._container_change_timer.start()
|
||||
|
||||
def _onContainerChanged(self, container):
|
||||
if container.getMetaDataEntry("type", "") == "material":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue