mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-06 09:56:36 +00:00
Worked a bit more on split view groups
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user