...
This commit is contained in:
parent
de61262563
commit
543e113be0
1 changed files with 2 additions and 2 deletions
|
|
@ -1325,7 +1325,7 @@ def new_tab(
|
|||
location: str = 'last',
|
||||
) -> Tab:
|
||||
idx = len(self.tabs)
|
||||
tabs = self.tabs_to_be_shown_in_tab_bar_as_sequence
|
||||
tabs = tuple(self.tabs_to_be_shown_in_tab_bar)
|
||||
orig_active_tab_idx = 0
|
||||
with suppress(ValueError):
|
||||
orig_active_tab_idx = tabs.index(self.active_tab)
|
||||
|
|
@ -1338,7 +1338,7 @@ def new_tab(
|
|||
for w in t:
|
||||
w.created_in_session_name = session_name
|
||||
self._add_tab(t)
|
||||
tabs = tuple(tabs) + (t,)
|
||||
tabs = tabs + (t,)
|
||||
if as_neighbor:
|
||||
location = 'after'
|
||||
if location == 'neighbor':
|
||||
|
|
|
|||
Loading…
Reference in a new issue