diff --git a/crates/gpui/src/app/async_context.rs b/crates/gpui/src/app/async_context.rs index 2375180e6f5512b48985bcc50af96036f3e197a0..2f8347dbe0af068662b26fe5918f796b90c8c224 100644 --- a/crates/gpui/src/app/async_context.rs +++ b/crates/gpui/src/app/async_context.rs @@ -151,7 +151,7 @@ impl AsyncApp { .upgrade() .ok_or_else(|| anyhow!("app was released"))?; let mut lock = app.borrow_mut(); - Ok(f(&mut lock)) + Ok(lock.update(f)) } /// Open a window with the given options based on the root view returned by the given function.