mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
fix: Pin current tab when glance full opening from Zen Folder (#10073)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user