From 0354564c0e0028f1d9846d3809fb989e97fcddf9 Mon Sep 17 00:00:00 2001 From: Alvaro Parker Date: Thu, 21 Aug 2025 16:03:40 -0400 Subject: [PATCH] Change keybind hints order --- crates/git_ui/src/stash_picker.rs | 36 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/crates/git_ui/src/stash_picker.rs b/crates/git_ui/src/stash_picker.rs index 5f6c493b1b..60e58b1928 100644 --- a/crates/git_ui/src/stash_picker.rs +++ b/crates/git_ui/src/stash_picker.rs @@ -452,24 +452,6 @@ impl PickerDelegate for StashListDelegate { .child( h_flex() .gap_0p5() - .child( - Button::new("drop-stash", "Drop") - .key_binding( - KeyBinding::for_action_in( - &stash_picker::DropStashItem, - &focus_handle, - window, - cx, - ) - .map(|kb| kb.size(rems_from_px(12.))), - ) - .on_click(|_, window, cx| { - window.dispatch_action( - stash_picker::DropStashItem.boxed_clone(), - cx, - ) - }), - ) .child( Button::new("apply-stash", "Apply") .key_binding( @@ -499,6 +481,24 @@ impl PickerDelegate for StashListDelegate { .on_click(|_, window, cx| { window.dispatch_action(menu::SecondaryConfirm.boxed_clone(), cx) }), + ) + .child( + Button::new("drop-stash", "Drop") + .key_binding( + KeyBinding::for_action_in( + &stash_picker::DropStashItem, + &focus_handle, + window, + cx, + ) + .map(|kb| kb.size(rems_from_px(12.))), + ) + .on_click(|_, window, cx| { + window.dispatch_action( + stash_picker::DropStashItem.boxed_clone(), + cx, + ) + }), ), ) .into_any(),