mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
fix: Fixed restoring split views, b=no-bug, c=folders, workspaces
This commit is contained in:
@@ -1319,7 +1319,9 @@
|
||||
}
|
||||
while (oldGroup.tabs.length > 0) {
|
||||
const tab = oldGroup.tabs[0];
|
||||
tab.setAttribute('zen-workspace-id', folderData.workspaceId);
|
||||
if (folderData.workspaceId) {
|
||||
tab.setAttribute('zen-workspace-id', folderData.workspaceId);
|
||||
}
|
||||
workingData.containingTabsFragment.appendChild(tab);
|
||||
}
|
||||
if (!folderData.splitViewGroup) {
|
||||
|
@@ -928,7 +928,7 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
|
||||
this.#fixTabPositions();
|
||||
this.onWindowResize();
|
||||
this._resolveInitialized();
|
||||
this._clearAnyZombieTabs(); // Dont call with await
|
||||
this.#clearAnyZombieTabs(); // Dont call with await
|
||||
|
||||
const tabUpdateListener = this.updateTabsContainers.bind(this);
|
||||
window.addEventListener('TabOpen', tabUpdateListener);
|
||||
@@ -1100,7 +1100,7 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
|
||||
);
|
||||
}
|
||||
|
||||
async _clearAnyZombieTabs() {
|
||||
async #clearAnyZombieTabs() {
|
||||
const tabs = this.allStoredTabs;
|
||||
const workspaces = await this._workspaces();
|
||||
for (let tab of tabs) {
|
||||
|
Reference in New Issue
Block a user