Fixed showing wrong tab when changing workspaces

This commit is contained in:
mr. m
2025-02-11 13:40:13 +01:00
parent c058950119
commit 6600e60498

View File

@@ -1480,7 +1480,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
}
// Find first suitable tab
else {
tabToSelect = Array.from(visibleTabs).find((tab) => !tab.pinned);
tabToSelect = Array.from(visibleTabs).find((tab) => this._shouldShowTab(tab, window.uuid, containerId, workspaces));
}
const previousSelectedTab = gBrowser.selectedTab;