Skip to content

Commit

Permalink
refactor(core/tree): _maybe_restore_tab_bar -> _ensure_tab_bar_restored
Browse files Browse the repository at this point in the history
  • Loading branch information
aravinda0 committed Mar 5, 2024
1 parent 71093c1 commit 69e585d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qtile_bonsai/core/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ def _add_very_first_tab(self) -> tuple[Pane, list[Node]]:
def _add_tab(self, tab_container: TabContainer) -> tuple[Pane, list[Node]]:
added_nodes = []

self._maybe_restore_tab_bar(tab_container)
self._ensure_tab_bar_restored(tab_container)

new_tab = self.create_tab()
new_tab.parent = tab_container
Expand Down Expand Up @@ -937,7 +937,7 @@ def _reevaluate_level_dependent_attributes(self, start_node: Node):
node.box.border = self.get_config("window.border_size", level=tab_level)
node.box.padding = self.get_config("window.padding", level=tab_level)

def _maybe_restore_tab_bar(self, tab_container: TabContainer):
def _ensure_tab_bar_restored(self, tab_container: TabContainer):
"""Depending on the `tab_bar.hide_when` config, we may require that a tab bar
that was previously hidden be made visible again.
"""
Expand Down

0 comments on commit 69e585d

Please sign in to comment.