Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git_panel: Toggle stage all when clicking changes label (#23548)
Nate Butlerfb332a0170ea
diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rsindex ce862fd77fe..bb665df016a 100644--- a/crates/git_ui/src/git_panel.rs+++ b/crates/git_ui/src/git_panel.rs@@ -834,7 +834,17 @@ impl GitPanel {false => git_panel.stage_all(&StageAll, cx),})),)- .child(div().text_buffer(cx).text_ui_sm(cx).child(changes_string)),+ .child(+ div()+ .id("changes-checkbox-label")+ .text_buffer(cx)+ .text_ui_sm(cx)+ .child(changes_string)+ .on_click(cx.listener(move |git_panel, _, cx| match all_staged {+ true => git_panel.unstage_all(&UnstageAll, cx),+ false => git_panel.stage_all(&StageAll, cx),+ })),+ ),).child(div().flex_grow()).child(