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:
Kristijan Ribarić 2024-10-26 22:31:03 +02:00
parent 2657049e86
commit b869831705

View file

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