mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-30 08:34:37 +00:00
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:
@@ -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 = [];
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user