Defer the repainting of the node in the tree

The previous change actually broke some of the tests in test_disabled.py --
well actually it flat out broke one and caused all the others to run *very*
slowly. No clue why though.

But thinking about this some more, it does feel like delaying the refresh of
the node makes more sense.
This commit is contained in:
Dave Pearson
2023-06-01 10:49:29 +01:00
parent 70f173fae8
commit e55ee23eae

View File

@@ -307,7 +307,7 @@ class TreeNode(Generic[TreeDataType]):
self._updates += 1
text_label = self._tree.process_label(label)
self._label = text_label
self._tree._refresh_node(self)
self._tree.call_later(self._tree._refresh_node, self)
def add(
self,