mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-24 00:06:02 +00:00
feat: Optimized SVGs and improved small details, b=no-bug, c=common, media, tabs, workspaces
This commit is contained in:
@@ -873,10 +873,6 @@ class nsZenWorkspaces {
|
||||
this._workspaceCache = spacesFromStore.length
|
||||
? [...spacesFromStore]
|
||||
: [await this.createAndSaveWorkspace('Space', undefined, true)];
|
||||
for (const workspace of this._workspaceCache) {
|
||||
// We don't want to depend on this by mistake
|
||||
delete workspace.hasCollapsedPinnedTabs;
|
||||
}
|
||||
this.activeWorkspace = aWinData.activeZenSpace || this._workspaceCache[0].uuid;
|
||||
await this.initializeWorkspaces();
|
||||
for (const workspace of spacesFromStore) {
|
||||
@@ -885,6 +881,10 @@ class nsZenWorkspaces {
|
||||
element.collapsiblePins.collapsed = workspace.hasCollapsedPinnedTabs || false;
|
||||
}
|
||||
}
|
||||
for (const workspace of this._workspaceCache) {
|
||||
// We don't want to depend on this by mistake
|
||||
delete workspace.hasCollapsedPinnedTabs;
|
||||
}
|
||||
this.#hasInitialized = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user