diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-16 16:38:38 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-21 22:07:14 +1100 |
commit | 61dac10bb94874800d7b955c875cbcc3b3efa546 (patch) | |
tree | 8a70a7645b60eeaf31b4725525dff112af581bb3 /pkg/gui/branches_panel.go | |
parent | b5385f2560d10fe74af34d9b09c7ebbfe0a46424 (diff) |
support navigating remotes view
Diffstat (limited to 'pkg/gui/branches_panel.go')
-rw-r--r-- | pkg/gui/branches_panel.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index a05d3ed2a..cd1a9a69b 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -355,24 +355,6 @@ func (gui *Gui) onBranchesTabClick(tabIndex int) error { return nil } -// gui.refreshStatus is called at the end of this because that's when we can -// be sure there is a state.Branches array to pick the current branch from -func (gui *Gui) refreshRemotes() error { - remotes, err := gui.GitCommand.GetRemotes() - if err != nil { - return gui.createErrorPanel(gui.g, err.Error()) - } - - gui.State.Remotes = remotes - - gui.g.Update(func(g *gocui.Gui) error { - gui.refreshSelectedLine(&gui.State.Panels.Remotes.SelectedLine, len(gui.State.Remotes)) - return nil - }) - - return nil -} - func (gui *Gui) handleNextBranchesTab(g *gocui.Gui, v *gocui.View) error { return gui.onBranchesTabClick( utils.ModuloWithWrap(v.TabIndex+1, len(v.Tabs)), |