Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions guake/guake_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1123,11 +1123,13 @@ def recompute_tabs_titles(self):
if not use_vte_titles:
return

# TODO NOTEBOOK this code only works if there is only one terminal in a
# page, this need to be rewritten
for terminal in self.get_notebook().iter_terminals():
page_num = self.get_notebook().page_num(terminal.get_parent())
self.get_notebook().rename_page(page_num, self.compute_tab_title(terminal), False)
notebook = self.get_notebook()
for page_num in range(notebook.get_n_pages()):
terminals = notebook.get_terminals_for_page(page_num)
if terminals:
main_terminal = terminals[0]
new_title = self.compute_tab_title(main_terminal)
notebook.rename_page(page_num, new_title, False)

def load_cwd_guake_yaml(self, vte) -> dict:
# Read the content of .guake.yml in cwd
Expand Down
5 changes: 5 additions & 0 deletions releasenotes/notes/bugfix-tab-names.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixes:
- |
Fix shortened path tab names layout issue (#2321).
Tabs now correctly update their shortened titles regardless of splits layout.