diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index 042613330..1341702f7 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -130,7 +130,7 @@ func (gui *Gui) handleGitFetch(g *gocui.Gui, v *gocui.View) error { } go func() { err := gui.fetch(true) - gui.HandleCredentialsPopup(err) + gui.handleCredentialsPopup(err) _ = gui.refreshSidePanels(refreshOptions{mode: ASYNC}) }() return nil diff --git a/pkg/gui/credentials_panel.go b/pkg/gui/credentials_panel.go index 593b24433..9333c2e7a 100644 --- a/pkg/gui/credentials_panel.go +++ b/pkg/gui/credentials_panel.go @@ -76,8 +76,8 @@ func (gui *Gui) handleCredentialsViewFocused(g *gocui.Gui, v *gocui.View) error return nil } -// HandleCredentialsPopup handles the views after executing a command that might ask for credentials -func (gui *Gui) HandleCredentialsPopup(cmdErr error) { +// handleCredentialsPopup handles the views after executing a command that might ask for credentials +func (gui *Gui) handleCredentialsPopup(cmdErr error) { _, _ = gui.g.SetViewOnBottom("credentials") if cmdErr != nil { errMessage := cmdErr.Error() diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go index 49b5150ef..a7253bbfd 100644 --- a/pkg/gui/files_panel.go +++ b/pkg/gui/files_panel.go @@ -491,7 +491,7 @@ func (gui *Gui) pullWithMode(mode string, opts PullFilesOptions) error { BranchName: opts.BranchName, }, ) - gui.HandleCredentialsPopup(err) + gui.handleCredentialsPopup(err) if err != nil { return gui.refreshSidePanels(refreshOptions{mode: ASYNC}) } @@ -518,7 +518,7 @@ func (gui *Gui) pushWithForceFlag(g *gocui.Gui, v *gocui.View, force bool, upstr go func() { branchName := gui.getCheckedOutBranch().Name err := gui.GitCommand.Push(branchName, force, upstream, args, gui.promptUserForCredential) - gui.HandleCredentialsPopup(err) + gui.handleCredentialsPopup(err) _ = gui.refreshSidePanels(refreshOptions{mode: ASYNC}) }() return nil