mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Add documentation for timers in Material and Quality managers
This commit is contained in:
parent
3e23659c79
commit
2dd7be1271
2 changed files with 6 additions and 0 deletions
|
@ -39,6 +39,9 @@ class MaterialManager(QObject):
|
|||
self._default_machine_definition_id = "fdmprinter"
|
||||
self._default_approximate_diameter_for_quality_search = "3"
|
||||
|
||||
# When a material gets added/imported, there can be more than one InstanceContainers. In those cases, we don't
|
||||
# want to react on every container/metadata changed signal. The timer here is to buffer it a bit so we don't
|
||||
# react too many time.
|
||||
self._update_timer = QTimer(self)
|
||||
self._update_timer.setInterval(300)
|
||||
self._update_timer.setSingleShot(True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue