summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/remotes_controller.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-03-26 14:44:30 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-26 18:00:46 +1100
commitad7703df65e09d23bb7e709ca9b22251673ac272 (patch)
tree67733bcebb87d6504c1d14368cb67a15acc36ecc /pkg/gui/controllers/remotes_controller.go
parent13b90ac37f40baa648c25fab6d299ae0fa59118b (diff)
show namesake for child views
Diffstat (limited to 'pkg/gui/controllers/remotes_controller.go')
-rw-r--r--pkg/gui/controllers/remotes_controller.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/gui/controllers/remotes_controller.go b/pkg/gui/controllers/remotes_controller.go
index fd4b34297..208f36af7 100644
--- a/pkg/gui/controllers/remotes_controller.go
+++ b/pkg/gui/controllers/remotes_controller.go
@@ -73,6 +73,11 @@ func (self *RemotesController) enter(remote *models.Remote) error {
newSelectedLine = -1
}
self.contexts.RemoteBranches.SetSelectedLineIdx(newSelectedLine)
+ self.contexts.RemoteBranches.SetTitleRef(remote.Name)
+
+ if err := self.c.PostRefreshUpdate(self.contexts.RemoteBranches); err != nil {
+ return err
+ }
return self.c.PushContext(self.contexts.RemoteBranches)
}