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

Started working on the popup

This commit is contained in:
mjarkk
2018-12-06 08:26:05 +01:00
parent c269ad1370
commit f6e83cdbdf
5 changed files with 26 additions and 8 deletions

View File

@ -421,9 +421,10 @@ func (gui *Gui) Run() error {
}
go func() {
time.Sleep(time.Second * 60)
err := gui.fetch(g, false)
if err == nil || !strings.Contains(err.Error(), "exit status 128") {
if err != nil && strings.Contains(err.Error(), "exit status 128") {
gui.createConfirmationPanel(g, g.CurrentView(), gui.Tr.SLocalize("NoAutomaticGitFetchTitle"), gui.Tr.SLocalize("NoAutomaticGitFetchBody"), nil, nil)
} else {
gui.goEvery(g, time.Second*60, func(g *gocui.Gui) error {
return gui.fetch(g, false)
})