summaryrefslogtreecommitdiffstats
path: root/pkg/gui/list_context.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-03-31 23:55:06 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-04-02 11:00:15 +1100
commit7d62f103e4a1b39b7e8fbd0e1f39815c525cd588 (patch)
tree83e331beeee07d066c76580e044234f18063a0a7 /pkg/gui/list_context.go
parent9e85d37fb949bbc83f28cb079f2ac4b45ae895ce (diff)
big refactor to give our enums actual types
Diffstat (limited to 'pkg/gui/list_context.go')
-rw-r--r--pkg/gui/list_context.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/list_context.go b/pkg/gui/list_context.go
index 2bbcaee55..39fa8f6bf 100644
--- a/pkg/gui/list_context.go
+++ b/pkg/gui/list_context.go
@@ -23,7 +23,7 @@ type ListContext struct {
Gui *Gui
ResetMainViewOriginOnFocus bool
- Kind int
+ Kind ContextKind
ParentContext Context
// we can't know on the calling end whether a Context is actually a nil value without reflection, so we're storing this flag here to tell us. There has got to be a better way around this.
hasParent bool
@@ -102,7 +102,7 @@ func (lc *ListContext) GetKey() string {
return lc.ContextKey
}
-func (lc *ListContext) GetKind() int {
+func (lc *ListContext) GetKind() ContextKind {
return lc.Kind
}