Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Update collab_titlebar_item.rs
Nate Butlere20309f560de
diff --git a/crates/collab_ui2/src/collab_titlebar_item.rs b/crates/collab_ui2/src/collab_titlebar_item.rsindex c93d5687a50..52381926d93 100644--- a/crates/collab_ui2/src/collab_titlebar_item.rs+++ b/crates/collab_ui2/src/collab_titlebar_item.rs@@ -151,18 +151,20 @@ impl Render for CollabTitlebarItem {h_stack().gap_1()// TODO - Add player menu- .child(- div()- .border()- .border_color(gpui::red())- .id("project_owner_indicator")- .child(- Button::new("player", "player")- .style(ButtonStyle2::Subtle)- .color(Some(Color::Player(0))),- )- .tooltip(move |cx| Tooltip::text("Toggle following", cx)),- )+ .when(is_in_room, |this| {+ this.child(+ div()+ .border()+ .border_color(gpui::red())+ .id("project_owner_indicator")+ .child(+ Button::new("project_owner", "project_owner")+ .style(ButtonStyle2::Subtle)+ .color(Some(Color::Player(0))),+ )+ .tooltip(move |cx| Tooltip::text("Toggle following", cx)),+ )+ })// TODO - Add project menu.child(div()