Split views now add missing tabs to the group

This commit is contained in:
Mauro Balades 2024-08-23 12:27:05 +02:00
parent 76f54a4f21
commit a2cc3ed395

View file

@ -240,6 +240,12 @@ var gZenViewSplitter = new class {
group.tabs.includes(existingSplitTab)
);
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);
return;
}