summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r--pkg/gui/gui.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index 9ad461bc7..42d79647f 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -110,7 +110,6 @@ type filePanelState struct {
// TODO: consider splitting this out into the window and the branches view
type branchPanelState struct {
SelectedLine int
- ContextIndex int
}
type remotePanelState struct {
@@ -490,7 +489,6 @@ func (gui *Gui) layout(g *gocui.Gui) error {
}
branchesView.Title = gui.Tr.SLocalize("BranchesTitle")
branchesView.Tabs = []string{"Local Branches", "Remotes"}
- branchesView.TabIndex = gui.State.Panels.Branches.ContextIndex
branchesView.FgColor = textColor
}
@@ -632,6 +630,8 @@ func (gui *Gui) onInitialViewsCreation() error {
return err
}
+ gui.getBranchesView().Context = "local-branches"
+
return gui.loadNewRepo()
}