gh-12241: fix skip startup bookmark invalidation when no workspace bookmarks exist (gh-13168)

This commit is contained in:
DQSS
2026-04-09 22:51:24 +02:00
committed by GitHub
parent 4add28d3c0
commit dfc47ee5d7

View File

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