diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-28 09:57:36 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-28 11:59:45 +1100 |
commit | 906a49049e2c10886fbf7f97ffabddd78b975f0e (patch) | |
tree | 880ced3f910b98e206ec9aac67b1df44606a8c13 /pkg/gui/file_watching.go | |
parent | c1a4bd0482ab06279700fa95404131ef24a2297d (diff) |
smart refreshing files
Diffstat (limited to 'pkg/gui/file_watching.go')
-rw-r--r-- | pkg/gui/file_watching.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/pkg/gui/file_watching.go b/pkg/gui/file_watching.go index 47d426c87..7e5e20a76 100644 --- a/pkg/gui/file_watching.go +++ b/pkg/gui/file_watching.go @@ -132,12 +132,7 @@ func (gui *Gui) watchFilesForChanges() { } // only refresh if we're not already if !gui.State.IsRefreshingFiles { - if err := gui.refreshFiles(); err != nil { - err = gui.createErrorPanel(gui.g, err.Error()) - if err != nil { - gui.Log.Error(err) - } - } + gui.refreshSidePanels(refreshOptions{mode: ASYNC, scope: []int{FILES}}) } // watch for errors |