summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-10-07 22:21:15 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-10-10 00:23:01 +1100
commit9011271a014025c514adf72b1d1ee69fbc7f3373 (patch)
tree56aa883701820fd538289a58c628c065cde971a2 /pkg/gui/gui.go
parent777ec0b36c5e7b7ba67766ec1bef3ebb3d60f599 (diff)
fix another panic error
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r--pkg/gui/gui.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index e9c321949..d928413e7 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -485,7 +485,7 @@ func (gui *Gui) Run() error {
go utils.Safe(gui.startBackgroundFetch)
}
- gui.goEvery(time.Millisecond*50, gui.stopChan, gui.refreshFilesAndSubmodules)
+ gui.goEvery(time.Second*10, gui.stopChan, gui.refreshFilesAndSubmodules)
g.SetManager(gocui.ManagerFunc(gui.layout), gocui.ManagerFunc(gui.getFocusLayout()))
@@ -642,7 +642,7 @@ func (gui *Gui) startBackgroundFetch() {
prompt: gui.Tr.NoAutomaticGitFetchBody,
})
} else {
- gui.goEvery(time.Millisecond*50, gui.stopChan, func() error {
+ gui.goEvery(time.Second*60, gui.stopChan, func() error {
err := gui.fetch(false)
return err
})