Skip to content

Commit

Permalink
Auto-group tabs not from bookmarks correctly #3258
Browse files Browse the repository at this point in the history
It was a regression of 9b1289b (at TST 3.9.8)
  • Loading branch information
piroor committed Dec 5, 2022
1 parent eb8c5e6 commit 8a0396b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webextensions/background/handle-tab-bunches.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,9 @@ async function tryGroupTabBunches() {
const openedFromBookmarkFolder = fromOthers.length > 0 && await detectBookmarkFolderFromTabs(fromOthers, tabReferences.length);
log(' => tryGroupTabBunches:openedFromBookmarkFolder: ', !!openedFromBookmarkFolder);
const newRootTabs = Tab.collectRootTabs(Tab.sort(openedFromBookmarkFolder ? openedFromBookmarkFolder.tabs : fromOthers));
log(' newRootTabs: ', newRootTabs);
if (newRootTabs.length > 1 &&
openedFromBookmarkFolder && // we should ignore tabs from bookmark folder: they should be handled by tryHandlTabBunchesFromBookmarks
!openedFromBookmarkFolder && // we should ignore tabs from bookmark folder: they should be handled by tryHandlTabBunchesFromBookmarks
configs.autoGroupNewTabsFromOthers) {
const granted = await confirmToAutoGroupNewTabsFromOthers(fromOthers);
if (granted)
Expand Down

0 comments on commit 8a0396b

Please sign in to comment.