diff options
author | mjarkk <mkopenga@gmail.com> | 2018-12-06 08:26:05 +0100 |
---|---|---|
committer | mjarkk <mkopenga@gmail.com> | 2018-12-06 08:26:05 +0100 |
commit | f6e83cdbdff57e8f3403c6b7f7acd22b88ca8613 (patch) | |
tree | c603822ed7f120cbe86ccefa0ccfe47f090b88d0 /pkg/gui/gui.go | |
parent | c269ad137090479be68b5353a05f2ed036b3dfc0 (diff) |
Started working on the popup
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 872a00c37..b443d008d 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -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) }) |