feat: Hide the folder containers after animating, p=#10434, c=folders

* feat: Hide the folder containers after animating, b=no-bug, c=folders

* feat: Dont iterate twice through split views, b=no-bug, c=folders, tabs
This commit is contained in:
mr. m
2025-09-19 15:29:37 +02:00
committed by GitHub
parent cdd7479f8c
commit 39be73681d
2 changed files with 6 additions and 2 deletions

View File

@@ -267,7 +267,10 @@
async #unloadAllActiveTabs(event, noClose = false) {
for (const tab of this.tabs) {
await gZenPinnedTabManager._onCloseTabShortcut(event, tab, { noClose });
await gZenPinnedTabManager._onCloseTabShortcut(event, tab, {
noClose,
expandSplitViewList: false,
});
}
this.activeTabs = [];
}

View File

@@ -774,6 +774,7 @@
behavior = lazy.zenPinnedTabCloseShortcutBehavior,
noClose = false,
closeIfPending = false,
expandSplitViewList = true,
} = {}
) {
try {
@@ -826,7 +827,7 @@
: selectedTab.group;
await gZenFolders.animateUnload(group, selectedTab);
let tabsToUnload = [selectedTab];
if (selectedTab.group?.hasAttribute('split-view-group')) {
if (selectedTab.group?.hasAttribute('split-view-group') && expandSplitViewList) {
tabsToUnload = selectedTab.group.tabs;
}
const allAreUnloaded = tabsToUnload.every(