gpui: Schedule a refresh right after launching app

This commit is contained in:
Thorsten Ball 2024-01-30 12:43:29 +01:00
parent 2ee290727a
commit f99f8d232a

View file

@ -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
})
}