summaryrefslogtreecommitdiffstats
path: root/pkg/gui/patch_options_panel.go
diff options
context:
space:
mode:
authorMoritz Haase <Moritz.Haase@bmw.de>2022-03-30 08:48:29 +0200
committerJesse Duffield <jessedduffield@gmail.com>2022-03-30 20:13:43 +1100
commit8fb2acc2244ae0364fa20288bfcf70deed3ae974 (patch)
tree02c132565c7b87bf54f895fbc0d815efce867cd1 /pkg/gui/patch_options_panel.go
parentf2fb6453a13d7e609bb8456843e208e8e3e7901a (diff)
pkg/gui: Rename IPopupHandler::Ask() to Confirm()
Follow the JavaScript naming scheme for user interaction (alert, prompt, confirm) as discussed in #1832.
Diffstat (limited to 'pkg/gui/patch_options_panel.go')
-rw-r--r--pkg/gui/patch_options_panel.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/patch_options_panel.go b/pkg/gui/patch_options_panel.go
index c8cfd76d1..30074f8d7 100644
--- a/pkg/gui/patch_options_panel.go
+++ b/pkg/gui/patch_options_panel.go
@@ -149,7 +149,7 @@ func (gui *Gui) handleMovePatchIntoWorkingTree() error {
}
if gui.helpers.WorkingTree.IsWorkingTreeDirty() {
- return gui.c.Ask(types.AskOpts{
+ return gui.c.Confirm(types.ConfirmOpts{
Title: gui.c.Tr.MustStashTitle,
Prompt: gui.c.Tr.MustStashWarning,
HandleConfirm: func() error {