diff options
author | toofar <toofar@spalge.com> | 2024-02-07 15:01:12 +1300 |
---|---|---|
committer | toofar <toofar@spalge.com> | 2024-02-09 14:45:34 +1300 |
commit | 7904830345d77ad1ad06e58b16b9fc9da27d4251 (patch) | |
tree | 59d2f2fbcf99adfd4b5b8d60d0c63be290071b6f | |
parent | d99c43518e460536eb40c7ad91e61988a0eca13b (diff) | |
download | qutebrowser-7904830345d77ad1ad06e58b16b9fc9da27d4251.tar.gz qutebrowser-7904830345d77ad1ad06e58b16b9fc9da27d4251.zip |
Focus active tab after loading tree tab session
Looks like when we refactored the session support to be backwards
compatible we forgot to assign tab_to_focus so it was ending up focusing
the last tab in the session for some reason. I guess that was just the
last one added to the tab.
-rw-r--r-- | qutebrowser/misc/sessions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/misc/sessions.py b/qutebrowser/misc/sessions.py index c9eb70b6b..78209dde2 100644 --- a/qutebrowser/misc/sessions.py +++ b/qutebrowser/misc/sessions.py @@ -600,7 +600,7 @@ class SessionManager(QObject): tabbed_browser.is_treetabbedbrowser if load_tree_tabs: tree_data = reconstruct_tree_data(win) - self._load_tree(tabbed_browser, tree_data) + tab_to_focus = self._load_tree(tabbed_browser, tree_data) elif not legacy_tree_loaded: for i, tab in enumerate(tabs): new_tab = tabbed_browser.tabopen(background=False) |