Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
Unsure why this fixes them...
  • Loading branch information
mgsloan committed Jan 29, 2025
1 parent cd485c6 commit 80033dd
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions crates/settings/src/settings_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,12 @@ pub fn handle_settings_file_changes(
});
cx.spawn(move |cx| async move {
while let Some(user_settings_content) = user_settings_file_rx.next().await {
let result = cx.update(|cx| {
SettingsStore::update_global(cx, |store, cx| {
let result = store.set_user_settings(&user_settings_content, cx);
if let Err(err) = &result {
log::error!("Failed to load user settings: {err}");
}
settings_changed(result.err(), cx);
});
let result = cx.update_global(|store: &mut SettingsStore, cx| {
let result = store.set_user_settings(&user_settings_content, cx);
if let Err(err) = &result {
log::error!("Failed to load user settings: {err}");
}
settings_changed(result.err(), cx);
cx.refresh_windows();
});
if result.is_err() {
Expand Down

0 comments on commit 80033dd

Please sign in to comment.