mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
pkg/gui: Rename IPopupHandler::Ask() to Confirm()
Follow the JavaScript naming scheme for user interaction (alert, prompt, confirm) as discussed in #1832.
This commit is contained in:
parent
f2fb6453a1
commit
8fb2acc224
26 changed files with 66 additions and 64 deletions
|
@ -863,7 +863,7 @@ func (gui *Gui) showIntroPopupMessage(done chan struct{}) error {
|
|||
return gui.c.SaveAppState()
|
||||
}
|
||||
|
||||
return gui.c.Ask(types.AskOpts{
|
||||
return gui.c.Confirm(types.ConfirmOpts{
|
||||
Title: "",
|
||||
Prompt: gui.c.Tr.IntroPopupMessage,
|
||||
HandleConfirm: onConfirm,
|
||||
|
@ -898,7 +898,7 @@ func (gui *Gui) startBackgroundFetch() {
|
|||
}
|
||||
err := gui.backgroundFetch()
|
||||
if err != nil && strings.Contains(err.Error(), "exit status 128") && isNew {
|
||||
_ = gui.c.Ask(types.AskOpts{
|
||||
_ = gui.c.Confirm(types.ConfirmOpts{
|
||||
Title: gui.c.Tr.NoAutomaticGitFetchTitle,
|
||||
Prompt: gui.c.Tr.NoAutomaticGitFetchBody,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue