diff --git a/qt/aqt/browser/sidebar/tree.py b/qt/aqt/browser/sidebar/tree.py index 97ab95a23..4c83aea72 100644 --- a/qt/aqt/browser/sidebar/tree.py +++ b/qt/aqt/browser/sidebar/tree.py @@ -688,7 +688,7 @@ class SidebarTreeView(QTreeView): full_name = head + node.name return lambda expanded: set_tag_collapsed( parent=self, tag=full_name, collapsed=not expanded - ).run_in_background() + ).run_in_background(initiator=self) for node in nodes: item = SidebarItem(