git_ui: Use switch wording in branch picker (#54606)
Closes #54467 This PR changes the branch picker’s confirm label from "Select" to "Switch" to better match the rest of the codebase and the action performed when confirming in the picker. I originally considered using "checkout", but since most places in our codebase use "switch" as the branch command name, I stuck with that. Release Notes: - N/A
This commit is contained in:
1 parent
fb57cf82a3
commit
f1ce3728cf
1 file changed
+2
-2
@@ -601,7 +601,7 @@ impl PickerDelegate for BranchListDelegate {
|
||||
match self.state {
|
||||
PickerState::List | PickerState::NewRemote | PickerState::NewBranch => {
|
||||
match self.branch_filter {
|
||||
BranchFilter::All | BranchFilter::Remote => "Select branch…",
|
||||
BranchFilter::All | BranchFilter::Remote => "Switch branch…",
|
||||
}
|
||||
}
|
||||
PickerState::CreateRemote(_) => "Enter a name for this remote…",
|
||||
@@ -1245,7 +1245,7 @@ impl PickerDelegate for BranchListDelegate {
|
||||
},
|
||||
)
|
||||
.child(
|
||||
Button::new("select_branch", "Select")
|
||||
Button::new("switch_branch", "Switch")
|
||||
.key_binding(
|
||||
KeyBinding::for_action_in(&menu::Confirm, &focus_handle, cx)
|
||||
.map(|kb| kb.size(rems_from_px(12.))),
|
||||
|
||||
Reference in new issue
Block a user