Ensure worker panes are added in the proper order

This commit is contained in:
2Shirt 2023-06-17 18:37:56 -07:00
parent c3bf5f6730
commit 9810c630f6
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -146,8 +146,8 @@ class TUI():
if update_layout:
self.layout['Workers']['height'] = height
# Add pane
self.layout['Workers']['Panes'].append(tmux.split_window(**tmux_args))
# Add pane (ensure panes are sorted top to bottom)
self.layout['Workers']['Panes'].insert(0, tmux.split_window(**tmux_args))
def clear_current_pane(self) -> None:
"""Clear screen and history for current pane."""