mirror of
https://github.com/zen-browser/desktop.git
synced 2026-03-29 20:01:52 +00:00
fix: Correctly restore unsynced windows, b=no-bug, c=workspaces
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user