1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-02-03 13:21:56 +02:00

Removed getPushPassUnameView function

This commit is contained in:
mjarkk 2018-11-10 09:09:18 +01:00
parent 834e42897d
commit 32ecc6d745
3 changed files with 2 additions and 7 deletions

View File

@ -61,7 +61,7 @@ func (gui *Gui) waitForPassUname(g *gocui.Gui, currentView *gocui.View, passOrUn
waitForGroupActie = true
waitForGroup.Add(1)
pushPassUnameView := gui.getPushPassUnameView(g)
pushPassUnameView, _ := g.View("pushPassUname")
if passOrUname == "username" {
pushPassUnameView.Title = gui.Tr.SLocalize("PushUsername")
pushPassUnameView.Mask = 0

View File

@ -269,7 +269,7 @@ func (gui *Gui) layout(g *gocui.Gui) error {
}
}
if gui.getPushPassUnameView(g) == nil {
if check, _ := g.View("pushPassUname"); 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 err != gocui.ErrUnknownView {

View File

@ -290,11 +290,6 @@ func (gui *Gui) getCommitMessageView(g *gocui.Gui) *gocui.View {
return v
}
func (gui *Gui) getPushPassUnameView(g *gocui.Gui) *gocui.View {
v, _ := g.View("pushPassUname")
return v
}
func (gui *Gui) getBranchesView(g *gocui.Gui) *gocui.View {
v, _ := g.View("branches")
return v