From b8698317059429344541e472413010a08b15d5fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristijan=20Ribari=C4=87?= Date: Sat, 26 Oct 2024 22:31:03 +0200 Subject: [PATCH] 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. --- src/ZenWorkspaces.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ZenWorkspaces.mjs b/src/ZenWorkspaces.mjs index 9eed69c..1a91814 100644 --- a/src/ZenWorkspaces.mjs +++ b/src/ZenWorkspaces.mjs @@ -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);