Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
title_bar: Fix `ToggleProjects` panic (#48775)
Finn Evers3d88c7063a45
diff --git a/crates/title_bar/src/title_bar.rs b/crates/title_bar/src/title_bar.rsindex 67f30a84012..38c2b028a9a 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::<TitleBar>().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);+ })});}});