diff options
Diffstat (limited to 'pkg/gui/types/context.go')
-rw-r--r-- | pkg/gui/types/context.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/types/context.go b/pkg/gui/types/context.go index 7ed0db1b2..bb8630bff 100644 --- a/pkg/gui/types/context.go +++ b/pkg/gui/types/context.go @@ -106,6 +106,7 @@ type IListContext interface { OnSearchSelect(selectedLineIdx int) error FocusLine() + IsListContext() // used for type switch } type IPatchExplorerContext interface { @@ -120,6 +121,7 @@ type IPatchExplorerContext interface { GetContentToRender(isFocused bool) string NavigateTo(isFocused bool, selectedLineIdx int) error GetMutex() *deadlock.Mutex + IsPatchExplorerContext() // used for type switch } type IViewTrait interface { @@ -208,4 +210,6 @@ type IContextMgr interface { CurrentSide() Context IsCurrent(c Context) bool ForEach(func(Context)) + AllList() []IListContext + AllPatchExplorer() []IPatchExplorerContext } |