This commit is contained in:
Mr. M
2025-08-29 00:12:29 +02:00

View File

@@ -620,6 +620,11 @@
this.animatingFullOpen = true;
this.#currentTab.setAttribute('zen-dont-split-glance', true);
const isZenFolder = this.#currentParentTab?.group?.isZenFolder;
if (Services.prefs.getBoolPref('zen.folders.owned-tabs-in-folder') && isZenFolder) {
gBrowser.pinTab(this.#currentTab);
}
gBrowser.moveTabAfter(this.#currentTab, this.#currentParentTab);
const browserRect = window.windowUtils.getBoundsWithoutFlushing(this.browserWrapper);
@@ -710,6 +715,10 @@
const currentTab = this.#currentTab;
const currentParentTab = this.#currentParentTab;
const isZenFolder = currentParentTab?.group?.isZenFolder;
if (Services.prefs.getBoolPref('zen.folders.owned-tabs-in-folder') && isZenFolder) {
gBrowser.pinTab(currentTab);
}
await this.fullyOpenGlance({ forSplit: true });
gZenViewSplitter.splitTabs([currentTab, currentParentTab], 'vsep', 1);
const browserContainer = currentTab.linkedBrowser?.closest('.browserSidebarContainer');