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:
parent
834e42897d
commit
32ecc6d745
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user