Reduce wait time before sending query

Most people should be able to type 5 characters per second. And those that can't will just have to see it refresh after every stroke.

Contributes to issue CURA-8009.
This commit is contained in:
Ghostkeeper 2021-07-12 18:46:54 +02:00
parent 94e229aa44
commit 1269c28d0a
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -120,7 +120,7 @@ class DigitalFactoryController(QObject):
self._project_creation_error_text = "Something went wrong while creating a new project. Please try again."
self._project_filter = ""
self._project_filter_change_timer = QTimer()
self._project_filter_change_timer.setInterval(1000)
self._project_filter_change_timer.setInterval(200)
self._project_filter_change_timer.setSingleShot(True)
self._project_filter_change_timer.timeout.connect(self._applyProjectFilter)