From 56370bb5f8f5e22d57495f9be6ac85ca903cc76a Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Thu, 16 Apr 2026 17:33:59 -0300 Subject: [PATCH] branch_picker: Ensure create buttons have unique IDs (#54117) Little bug I noticed that was preventing the buttons in the branch picker's footer from working correctly. Release Notes: - Fixed a bug in the branch picker where the buttons wouldn't properly get activated. --- crates/git_ui/src/branch_picker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/git_ui/src/branch_picker.rs b/crates/git_ui/src/branch_picker.rs index 4c8248791d56cac5301981f00682d1c41b564c60..a78e933008f97c60644ab9fd667337b9b716e1c0 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.))),