From 39be73681dd64c8839305cf1808c7cdb68a4aab6 Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheffy@users.noreply.github.com> Date: Fri, 19 Sep 2025 15:29:37 +0200 Subject: [PATCH] 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 --- src/zen/folders/ZenFolder.mjs | 5 ++++- src/zen/tabs/ZenPinnedTabManager.mjs | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/zen/folders/ZenFolder.mjs b/src/zen/folders/ZenFolder.mjs index af54b3a02..a0588c258 100644 --- a/src/zen/folders/ZenFolder.mjs +++ b/src/zen/folders/ZenFolder.mjs @@ -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 = []; } diff --git a/src/zen/tabs/ZenPinnedTabManager.mjs b/src/zen/tabs/ZenPinnedTabManager.mjs index ed0dfa570..1b0b77e98 100644 --- a/src/zen/tabs/ZenPinnedTabManager.mjs +++ b/src/zen/tabs/ZenPinnedTabManager.mjs @@ -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(