mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-28 01:11:32 +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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user