Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Allow toggling subchannel visiblity without joining channel
Conrad Irwin90b8acfb34fe
diff --git a/crates/ui2/src/components/button/button_like.rs b/crates/ui2/src/components/button/button_like.rsindex 4dd31e26c70..c99a226ee0e 100644--- a/crates/ui2/src/components/button/button_like.rs+++ b/crates/ui2/src/components/button/button_like.rs@@ -262,7 +262,12 @@ impl RenderOnce for ButtonLike {.active(|active| active.bg(self.style.active(cx).background)).when_some(self.on_click.filter(|_| !self.disabled),- |this, on_click| this.on_click(move |event, cx| (on_click)(event, cx)),+ |this, on_click| {+ this.on_click(move |event, cx| {+ cx.stop_propagation();+ (on_click)(event, cx)+ })+ },).when_some(self.tooltip, |this, tooltip| {this.tooltip(move |cx| tooltip(cx))