Avoid dangerous default value
This commit is contained in:
parent
45a7f84e19
commit
13e14e6734
1 changed files with 2 additions and 1 deletions
|
|
@ -227,9 +227,10 @@ class TUI():
|
|||
self,
|
||||
line1: str = 'Title Text',
|
||||
line2: str = '',
|
||||
colors: list[str] | None = ['BLUE', ''],
|
||||
colors: list[str] | None = None,
|
||||
) -> None:
|
||||
"""Remove all extra title panes, reset main title pane, and update layout."""
|
||||
colors = self.title_colors if colors is None else colors
|
||||
panes = self.layout['Title']['Panes'].copy()
|
||||
if len(panes) > 1:
|
||||
tmux.kill_pane(*panes[1:])
|
||||
|
|
|
|||
Loading…
Reference in a new issue