1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-29 22:48:24 +02:00

First good success

This commit is contained in:
mjarkk
2018-10-20 17:37:55 +02:00
parent 727ba9f42e
commit 12425f0aa7
7 changed files with 109 additions and 13 deletions

View File

@@ -268,6 +268,20 @@ func (gui *Gui) layout(g *gocui.Gui) error {
}
}
if gui.getPushPassUnameView(g) == 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 err != gocui.ErrUnknownView {
return err
}
g.SetViewOnBottom("pushPassUname")
pushPassUnameView.Title = gui.Tr.SLocalize("PushUsername")
pushPassUnameView.FgColor = gocui.ColorWhite
pushPassUnameView.Editable = true
pushPassUnameView.Editor = gocui.EditorFunc(gui.simpleEditor)
}
}
if appStatusView, err := g.SetView("appStatus", -1, optionsTop, width, optionsTop+2, 0); err != nil {
if err != gocui.ErrUnknownView {
return err