Skip to content

Commit 3723517

Browse files
authored
fix: Pin current tab when glance full opening from Zen Folder (#10073)
1 parent c095bc7 commit 3723517

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/zen/glance/ZenGlanceManager.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,11 @@
620620
this.animatingFullOpen = true;
621621
this.#currentTab.setAttribute('zen-dont-split-glance', true);
622622

623+
const isZenFolder = this.#currentParentTab?.group?.isZenFolder;
624+
if (Services.prefs.getBoolPref('zen.folders.owned-tabs-in-folder') && isZenFolder) {
625+
gBrowser.pinTab(this.#currentTab);
626+
}
627+
623628
gBrowser.moveTabAfter(this.#currentTab, this.#currentParentTab);
624629

625630
const browserRect = window.windowUtils.getBoundsWithoutFlushing(this.browserWrapper);

0 commit comments

Comments
 (0)