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();

View File

@@ -188,6 +188,10 @@
pointer-events: none;
}
:root[zen-unsynced-window='true'][zen-sidebar-expanded='true'] & {
padding: calc(-2px + var(--tab-inline-padding) + var(--zen-toolbox-padding));
}
:root:not([zen-unsynced-window]) & {
&:hover,
&[open='true'] {
@@ -243,7 +247,6 @@
padding: 4px 8px;
border-radius: 99px;
font-size: 10px;
margin-inline-start: -6px;
}
}