summaryrefslogtreecommitdiffstats
path: root/pkg/gui/branches_panel.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/branches_panel.go')
-rw-r--r--pkg/gui/branches_panel.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go
index 27c2d693c..956b67e96 100644
--- a/pkg/gui/branches_panel.go
+++ b/pkg/gui/branches_panel.go
@@ -69,7 +69,7 @@ func (gui *Gui) refreshBranches() {
}
gui.State.Branches = builder.Build()
- if err := gui.postRefreshUpdate(gui.Contexts.Branches.Context); err != nil {
+ if err := gui.postRefreshUpdate(gui.Contexts.Branches); err != nil {
gui.Log.Error(err)
}
@@ -507,8 +507,8 @@ func (gui *Gui) handleNewBranchOffCurrentItem() error {
context.GetPanelState().SetSelectedLineIdx(0)
}
- if context.GetKey() != gui.Contexts.Branches.Context.GetKey() {
- if err := gui.pushContext(gui.Contexts.Branches.Context); err != nil {
+ if context.GetKey() != gui.Contexts.Branches.GetKey() {
+ if err := gui.pushContext(gui.Contexts.Branches); err != nil {
return err
}
}