Fix a bug in GPUI, where AsyncApp::update wouldn't kick off a flush effects loop (#24208)

Mikayla Maki created

Release Notes:

- N/A

Change summary

crates/gpui/src/app/async_context.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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.