Worked a bit more on split view groups

This commit is contained in:
mr. m
2025-02-28 21:20:11 +01:00
parent 6023462bbd
commit 1ae11fef58
5 changed files with 64 additions and 24 deletions

View File

@@ -565,6 +565,8 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
* @param {number} groupIndex - The index of the group to remove.
*/
removeGroup(groupIndex) {
const group = this._data[groupIndex];
gZenFolders.expandGroupTabs(group);
if (this.currentView === groupIndex) {
this.deactivateCurrentSplitView();
}
@@ -721,7 +723,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
} else {
// Add any tabs that are not already in the group
for (const tab of tabs) {
if (!group.tabs.includes(tab)) {
if (!group.tabs.includes(tab) && tab.pinned === group.pinned) {
group.tabs.push(tab);
this.addTabToSplit(tab, group.layoutTree);
}