Mark each load task as done when it's done

This commit is contained in:
Dave Pearson
2023-05-17 14:45:08 +01:00
parent 3f6472823e
commit 2a91e13ca3

View File

@@ -336,6 +336,8 @@ class DirectoryTree(Tree[DirEntry]):
# the tree.
if content:
self._populate_node(node, content)
# Mark this iteration as done.
self._to_load.task_done()
def _on_tree_node_expanded(self, event: Tree.NodeExpanded) -> None:
event.stop()