mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 00:10:01 +02:00
fix(workspaces): Notify theme picker when workspace has synced
This commit updates the workspace sync logic to notify the theme picker when the active workspace changes. This ensures that the theme picker can update its state and display the correct theme for the current workspace.
This commit is contained in:
parent
2657049e86
commit
b869831705
1 changed files with 3 additions and 0 deletions
|
@ -65,6 +65,9 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||
lastChangeTimestamp > this._workspaceCache.lastChangeTimestamp
|
||||
) {
|
||||
await this._propagateWorkspaceData();
|
||||
|
||||
const currentWorkspace = await this.getActiveWorkspace();
|
||||
await gZenThemePicker.onWorkspaceChange(currentWorkspace);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error updating workspaces after sync:', error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue