Skip to content

Commit

Permalink
docs(core/tree): add docstring to _reeval_level_dependent_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
aravinda0 committed Mar 5, 2024
1 parent 69e585d commit 71b6837
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/qtile_bonsai/core/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,12 @@ def _build_tab_bar(
)

def _reevaluate_level_dependent_attributes(self, start_node: Node):
"""Walks down the provided `start_node` and re-applies any level dependent
configuration.
Used in cases like when a subtree is added under an existing node. The moved
nodes may now be at a different tab level than before.
"""
for node in self.iter_walk(start=start_node):
tab_level = node.tab_level
if isinstance(node, TabContainer):
Expand Down

0 comments on commit 71b6837

Please sign in to comment.