diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 09:46:28 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 0dd2c869a8808e937c69f8ce0ba04015e5a9075e (patch) | |
tree | 24cbbe2466752c0510705384f196347b46373888 /pkg/gui/files_panel.go | |
parent | ed85ea69bd74d2914b8224c83d481e43179e7699 (diff) |
minor refactor
Diffstat (limited to 'pkg/gui/files_panel.go')
-rw-r--r-- | pkg/gui/files_panel.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go index 1d20f54d9..f9312930c 100644 --- a/pkg/gui/files_panel.go +++ b/pkg/gui/files_panel.go @@ -32,7 +32,7 @@ func (gui *Gui) selectFile(alreadySelected bool) error { file := gui.getSelectedFile() if file == nil { - return gui.refreshMain(refreshMainOpts{ + return gui.refreshMainViews(refreshMainOpts{ main: &viewUpdateOpts{ title: "", task: gui.createRenderStringTask(gui.Tr.SLocalize("NoChangedFiles")), @@ -74,7 +74,7 @@ func (gui *Gui) selectFile(alreadySelected bool) error { refreshOpts.main.title = gui.Tr.SLocalize("StagedChanges") } - return gui.refreshMain(refreshOpts) + return gui.refreshMainViews(refreshOpts) } func (gui *Gui) refreshFiles() error { |