diff options
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/files_panel.go | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go index 2f44e566f..c2ec97e3b 100644 --- a/pkg/gui/files_panel.go +++ b/pkg/gui/files_panel.go @@ -332,15 +332,17 @@ func (gui *Gui) handleAmendCommitPress() error { title: strings.Title(gui.Tr.SLocalize("AmendLastCommit")), prompt: gui.Tr.SLocalize("SureToAmend"), handleConfirm: func() error { - ok, err := gui.runSyncOrAsyncCommand(gui.GitCommand.AmendHead()) - if err != nil { - return err - } - if !ok { - return nil - } + return gui.WithWaitingStatus(gui.Tr.SLocalize("AmendingStatus"), func() error { + ok, err := gui.runSyncOrAsyncCommand(gui.GitCommand.AmendHead()) + if err != nil { + return err + } + if !ok { + return nil + } - return gui.refreshSidePanels(refreshOptions{mode: ASYNC}) + return gui.refreshSidePanels(refreshOptions{mode: ASYNC}) + }) }, }) } |