From b77f6b73583f4a7b6899ef46a691818cebfbb3ae Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Tue, 5 Dec 2023 17:57:33 +0100 Subject: [PATCH] added small docstring --- openpype/tools/ayon_utils/widgets/utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openpype/tools/ayon_utils/widgets/utils.py b/openpype/tools/ayon_utils/widgets/utils.py index e8bb1bf6c7..5165b3a262 100644 --- a/openpype/tools/ayon_utils/widgets/utils.py +++ b/openpype/tools/ayon_utils/widgets/utils.py @@ -35,6 +35,12 @@ class RefreshThread(QtCore.QThread): return self._result def _on_finish_callback(self): + """Trigger custom signal with thread id. + + Listening for 'finished' signal we make sure that execution of thread + finished and QThread object can be safely deleted. + """ + self.refresh_finished.emit(self.id)