This commit is contained in:
Kovid Goyal 2026-03-04 19:48:36 +05:30
parent f7a4bf6be2
commit e6aeaaa4ff
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -1164,6 +1164,11 @@ def add_tabs_from_session(self, session: SessionType, session_name: str = '') ->
# focus_tab.
if (at := self.active_tab) and (w := at.active_window):
w.last_focused_at = monotonic()
active_tab = self.active_tab
for tab in added_tabs:
w = tab.active_window
for q in tab:
q.focus_changed(w is q and tab is active_tab)
@property
def active_tab_idx(self) -> int: