Skip to content

settings_ui: Fix editable project settings not being updated when a new workspace is created#47992

Merged
Anthony-Eid merged 3 commits intomainfrom
fix-settings-ui-workspace-sync
Jan 30, 2026
Merged

settings_ui: Fix editable project settings not being updated when a new workspace is created#47992
Anthony-Eid merged 3 commits intomainfrom
fix-settings-ui-workspace-sync

Conversation

@Anthony-Eid
Copy link
Contributor

The bug occurred because cx.observe_new::<Workspace> would pass a
mutable Window that was also the new workspace's window. Later,
fetch_files would fail to read the newly created workspace from
WorkspaceStore because its window already had a mutable reference to
it.

The fix always passes the Settings UI's window handle to the
fetch_files function, and uses a settings_window_handle.defer
callback to call fetch_files after the newly created workspace's
window no longer has any mutable references to it.

Release Notes:

  • settings_ui: Fixed editable project settings not being updated when a new workspace is created

The bug occurred because `cx.observe_new::<Workspace>` would pass a
mutable `Window` that was also the new workspace's window. Later,
`fetch_files` would fail to read the newly created workspace from
`WorkspaceStore` because its window already had a mutable reference to
it.

The fix always passes the Settings UI's window handle to the
`fetch_files` function, and use a `settings_window_handle.defer`
callback to call `fetch_files` after the newly created workspace's
window no longer has any mutable references to it.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 30, 2026
@Anthony-Eid Anthony-Eid merged commit fe653a7 into main Jan 30, 2026
27 checks passed
@Anthony-Eid Anthony-Eid deleted the fix-settings-ui-workspace-sync branch January 30, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant