Allow tab title to be set to empty to use window title

This commit is contained in:
pagedown 2022-01-22 03:28:42 +08:00
parent 88ee5e95fc
commit d29faa0986
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB

View File

@ -1425,7 +1425,7 @@ class Boss:
def do_set_tab_title(self, title: str, tab_id: int) -> None:
tm = self.active_tab_manager
if tm is not None and title:
if tm is not None:
tab_id = int(tab_id)
for tab in tm.tabs:
if tab.id == tab_id: