1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-01 00:54:58 +02:00

always hide rather than delete the credentials view, and don't log on error in case there is a user password in the error

This commit is contained in:
Jesse Duffield
2018-12-16 17:05:34 +11:00
parent af26b5f3e0
commit 4886b8350e
5 changed files with 32 additions and 25 deletions

View File

@ -65,11 +65,7 @@ func (gui *Gui) waitForPassUname(g *gocui.Gui, currentView *gocui.View, passOrUn
credentialsView.Mask = '*'
}
g.Update(func(g *gocui.Gui) error {
_, err := g.SetViewOnTop("credentials")
if err != nil {
return err
}
err = gui.switchFocus(g, currentView, credentialsView)
err := gui.switchFocus(g, currentView, credentialsView)
if err != nil {
return err
}
@ -124,7 +120,7 @@ func (gui *Gui) handlePushClose(g *gocui.Gui, v *gocui.View) error {
return gui.switchFocus(g, nil, gui.getFilesView(g))
}
func (gui *Gui) handlePushFocused(g *gocui.Gui, v *gocui.View) error {
func (gui *Gui) handleCredentialsViewFocused(g *gocui.Gui, v *gocui.View) error {
if _, err := g.SetViewOnTop("credentials"); err != nil {
return err
}