diff --git a/crates/title_bar/src/title_bar.rs b/crates/title_bar/src/title_bar.rs index 67f30a840126dd202ccd146adf384c88b055cd15..38c2b028a9a4b161ef4397a29b510390f4dd58e9 100644 --- a/crates/title_bar/src/title_bar.rs +++ b/crates/title_bar/src/title_bar.rs @@ -84,8 +84,10 @@ pub fn init(cx: &mut App) { .titlebar_item() .and_then(|item| item.downcast::().ok()) { - titlebar.update(cx, |titlebar, cx| { - titlebar.show_project_dropdown(window, cx); + window.defer(cx, move |window, cx| { + titlebar.update(cx, |titlebar, cx| { + titlebar.show_project_dropdown(window, cx); + }) }); } });