From f99f8d232ad93f162547372f5d5e3bca3dce6a3c Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Tue, 30 Jan 2024 12:43:29 +0100 Subject: [PATCH] gpui: Schedule a refresh right after launching app --- crates/gpui/src/app.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs index eaa081bb52..81617684c3 100644 --- a/crates/gpui/src/app.rs +++ b/crates/gpui/src/app.rs @@ -509,6 +509,8 @@ impl AppContext { let root_view = build_root_view(&mut WindowContext::new(cx, &mut window)); window.root_view.replace(root_view.into()); cx.windows.get_mut(id).unwrap().replace(window); + // Schedule a draw right after launching the window. + cx.refresh(); handle }) }