diff options
Diffstat (limited to 'pkg/gui/context/branches_context.go')
-rw-r--r-- | pkg/gui/context/branches_context.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkg/gui/context/branches_context.go b/pkg/gui/context/branches_context.go index ba1982cbf..a3e404fdb 100644 --- a/pkg/gui/context/branches_context.go +++ b/pkg/gui/context/branches_context.go @@ -18,9 +18,9 @@ func NewBranchesContext( view *gocui.View, getDisplayStrings func(startIdx int, length int) [][]string, - onFocus func(...types.OnFocusOpts) error, - onRenderToMain func(...types.OnFocusOpts) error, - onFocusLost func() error, + onFocus func(types.OnFocusOpts) error, + onRenderToMain func() error, + onFocusLost func(opts types.OnFocusLostOpts) error, c *types.HelperCommon, ) *BranchesContext { @@ -30,7 +30,7 @@ func NewBranchesContext( BasicViewModel: viewModel, ListContextTrait: &ListContextTrait{ Context: NewSimpleContext(NewBaseContext(NewBaseContextOpts{ - ViewName: "branches", + View: view, WindowName: "branches", Key: LOCAL_BRANCHES_CONTEXT_KEY, Kind: types.SIDE_CONTEXT, @@ -41,7 +41,6 @@ func NewBranchesContext( OnRenderToMain: onRenderToMain, }), list: viewModel, - viewTrait: NewViewTrait(view), getDisplayStrings: getDisplayStrings, c: c, }, |