mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 17:30:14 +02:00
Split views now add missing tabs to the group
This commit is contained in:
parent
76f54a4f21
commit
a2cc3ed395
1 changed files with 6 additions and 0 deletions
|
@ -240,6 +240,12 @@ var gZenViewSplitter = new class {
|
||||||
group.tabs.includes(existingSplitTab)
|
group.tabs.includes(existingSplitTab)
|
||||||
);
|
);
|
||||||
if (groupIndex >= 0) {
|
if (groupIndex >= 0) {
|
||||||
|
// Add any tabs that are not already in the group
|
||||||
|
for (const tab of tabs) {
|
||||||
|
if (!this._data[groupIndex].tabs.includes(tab)) {
|
||||||
|
this._data[groupIndex].tabs.push(tab);
|
||||||
|
}
|
||||||
|
}
|
||||||
this.updateSplitView(existingSplitTab);
|
this.updateSplitView(existingSplitTab);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue