1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Changed pushPassUname name to credentials

This commit is contained in:
mjarkk
2018-12-10 07:51:06 +01:00
parent 3c17bf761a
commit 61c2778de1
7 changed files with 29 additions and 29 deletions

View File

@ -341,20 +341,20 @@ func (gui *Gui) layout(g *gocui.Gui) error {
}
}
if check, _ := g.View("pushPassUname"); check == nil {
if check, _ := g.View("credentials"); check == nil {
// doesn't matter where this view starts because it will be hidden
if pushPassUnameView, err := g.SetView("pushPassUname", 0, 0, width/2, height/2, 0); err != nil {
if credentialsView, err := g.SetView("credentials", 0, 0, width/2, height/2, 0); err != nil {
if err != gocui.ErrUnknownView {
return err
}
_, err := g.SetViewOnBottom("pushPassUname")
_, err := g.SetViewOnBottom("credentials")
if err != nil {
return err
}
pushPassUnameView.Title = gui.Tr.SLocalize("PushUsername")
pushPassUnameView.FgColor = gocui.ColorWhite
pushPassUnameView.Editable = true
pushPassUnameView.Editor = gocui.EditorFunc(gui.simpleEditor)
credentialsView.Title = gui.Tr.SLocalize("PushUsername")
credentialsView.FgColor = gocui.ColorWhite
credentialsView.Editable = true
credentialsView.Editor = gocui.EditorFunc(gui.simpleEditor)
}
}