Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

branch_picker: Ensure create buttons have unique IDs (#54117)

Danilo Leal56370bb5f8f5
diff --git a/crates/git_ui/src/branch_picker.rs b/crates/git_ui/src/branch_picker.rs
index 4c8248791d5..a78e933008f 100644
--- a/crates/git_ui/src/branch_picker.rs
+++ b/crates/git_ui/src/branch_picker.rs
@@ -1331,7 +1331,7 @@ impl PickerDelegate for BranchListDelegate {
this.child(button)
})
.child(
- Button::new("branch-from-default", "Create")
+ Button::new("create-new-branch", "Create")
.key_binding(
KeyBinding::for_action_in(&menu::Confirm, &focus_handle, cx)
.map(|kb| kb.size(rems_from_px(12.))),
@@ -1347,7 +1347,7 @@ impl PickerDelegate for BranchListDelegate {
footer_container()
.justify_end()
.child(
- Button::new("branch-from-default", "Confirm")
+ Button::new("confirm-create-remote", "Confirm")
.key_binding(
KeyBinding::for_action_in(&menu::Confirm, &focus_handle, cx)
.map(|kb| kb.size(rems_from_px(12.))),