mirror of
https://github.com/zen-browser/desktop.git
synced 2026-05-20 12:01:27 +00:00
gh-12241: fix skip startup bookmark invalidation when no workspace bookmarks exist (gh-13168)
This commit is contained in:
@@ -2469,8 +2469,14 @@ class nsZenWorkspaces {
|
||||
}
|
||||
}
|
||||
|
||||
// Reset bookmarks
|
||||
this.#invalidateBookmarkContainers();
|
||||
// Avoid forcing a startup toolbar rebuild when there are no
|
||||
// workspace-specific bookmark assignments to apply.
|
||||
const hasWorkspaceBookmarks = !!Object.keys(
|
||||
this._workspaceBookmarksCache?.bookmarks || {}
|
||||
).length;
|
||||
if (!onInit || hasWorkspaceBookmarks) {
|
||||
this.#invalidateBookmarkContainers();
|
||||
}
|
||||
|
||||
// Update workspace indicator
|
||||
await this.updateWorkspaceIndicator(workspace, this.workspaceIndicator);
|
||||
|
||||
Reference in New Issue
Block a user