fix: Correctly restore unsynced windows, b=no-bug, c=workspaces

This commit is contained in:
mr. m
2026-01-05 19:29:22 +01:00
parent 2628ba7dd8
commit 591193b748
3 changed files with 17 additions and 9 deletions

View File

@@ -118,6 +118,11 @@ class nsZenWorkspaces {
window.addEventListener('resize', this.onWindowResize.bind(this));
this.addPopupListeners();
if (this.privateWindowOrDisabled) {
await this.#waitForPromises();
await this.restoreWorkspacesFromSessionStore({});
}
}
log(...args) {
@@ -133,9 +138,6 @@ class nsZenWorkspaces {
});
};
this._pinnedTabsResizeObserver = new ResizeObserver(onResize);
if (this.privateWindowOrDisabled) {
await this.restoreWorkspacesFromSessionStore({});
}
this.registerPinnedResizeObserver();
this.#initializeWorkspaceTabContextMenus();