diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 10:17:17 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 4198bbae6cc3747ee45d47648acab2b91f121272 (patch) | |
tree | 67081497955b0eda5c37ac28afc8ec7f8ee22d30 /pkg/gui/commits_panel.go | |
parent | ade54b38c12079ba133e9c8810af2a3760afb0f3 (diff) |
ensure there is always a current context
Diffstat (limited to 'pkg/gui/commits_panel.go')
-rw-r--r-- | pkg/gui/commits_panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/commits_panel.go b/pkg/gui/commits_panel.go index c98c3f504..007f3f447 100644 --- a/pkg/gui/commits_panel.go +++ b/pkg/gui/commits_panel.go @@ -85,7 +85,7 @@ func (gui *Gui) refreshCommits() error { go func() { _ = gui.refreshCommitsWithLimit() - if gui.g.CurrentView() == gui.getCommitFilesView() || (gui.currentContextKey() == gui.Contexts.PatchBuilding.Context.GetKey()) { + if gui.g.CurrentView() == gui.getCommitFilesView() || (gui.currentContext().GetKey() == gui.Contexts.PatchBuilding.Context.GetKey()) { _ = gui.refreshCommitFilesView() } wg.Done() |