summaryrefslogtreecommitdiffstats
path: root/pkg/gui/list_context.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-02 20:48:22 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commit9fe7e0d63d9b7a3395bedb4480d6e94555d06c3b (patch)
tree16bf64661b0df858e17b8403bcec5f07b7678e87 /pkg/gui/list_context.go
parent8935794e28092533d37cafdb832c10fa063ad2f8 (diff)
fix bug where we had two sets of contexts with their own state
Diffstat (limited to 'pkg/gui/list_context.go')
-rw-r--r--pkg/gui/list_context.go27
1 files changed, 14 insertions, 13 deletions
diff --git a/pkg/gui/list_context.go b/pkg/gui/list_context.go
index c067e652f..7f78f5a97 100644
--- a/pkg/gui/list_context.go
+++ b/pkg/gui/list_context.go
@@ -530,19 +530,20 @@ func (gui *Gui) suggestionsListContext() *ListContext {
func (gui *Gui) getListContexts() []*ListContext {
return []*ListContext{
- gui.menuListContext(),
- gui.filesListContext(),
- gui.branchesListContext(),
- gui.remotesListContext(),
- gui.remoteBranchesListContext(),
- gui.tagsListContext(),
- gui.branchCommitsListContext(),
- gui.reflogCommitsListContext(),
- gui.subCommitsListContext(),
- gui.stashListContext(),
- gui.commitFilesListContext(),
- gui.submodulesListContext(),
- gui.suggestionsListContext(),
+ gui.Contexts.Menu.Context.(*ListContext),
+ gui.Contexts.Files.Context.(*ListContext),
+ gui.Contexts.Branches.Context.(*ListContext),
+ gui.Contexts.Remotes.Context.(*ListContext),
+ gui.Contexts.Remotes.Branches.Context.(*ListContext),
+ gui.Contexts.Tags.Context.(*ListContext),
+ gui.Contexts.BranchCommits.Context.(*ListContext),
+ gui.Contexts.BranchCommits.Context.(*ListContext),
+ gui.Contexts.ReflogCommits.Context.(*ListContext),
+ gui.Contexts.SubCommits.Context.(*ListContext),
+ gui.Contexts.Stash.Context.(*ListContext),
+ gui.Contexts.CommitFiles.Context.(*ListContext),
+ gui.Contexts.Submodules.Context.(*ListContext),
+ gui.Contexts.Suggestions.Context.(*ListContext),
}
}