summaryrefslogtreecommitdiffstats
path: root/pkg/gui/remotes_panel.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/remotes_panel.go')
-rw-r--r--pkg/gui/remotes_panel.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/pkg/gui/remotes_panel.go b/pkg/gui/remotes_panel.go
index 24058ea84..32d69498d 100644
--- a/pkg/gui/remotes_panel.go
+++ b/pkg/gui/remotes_panel.go
@@ -67,15 +67,7 @@ func (gui *Gui) refreshRemotes() error {
}
}
- // TODO: see if this works for deleting remote branches
- switch gui.getBranchesView().Context {
- case "remotes":
- return gui.renderRemotesWithSelection()
- case "remote-branches":
- return gui.renderRemoteBranchesWithSelection()
- }
-
- return nil
+ return gui.postRefreshUpdate(gui.contextForContextKey(gui.getBranchesView().Context))
}
func (gui *Gui) renderRemotesWithSelection() error {