diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-02-26 19:06:22 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | ee1337b93190d7354b64ce84bf5c9bccba48fe4e (patch) | |
tree | 0b7a8b96ffa0417d0a9356ea0d2ed836f292250f /pkg/gui/gui.go | |
parent | d543e767d4b856e975de67a4c10e64e0a656b329 (diff) |
add remote branches controller
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 9f83f0b74..1cd2229f5 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -589,6 +589,8 @@ func (gui *Gui) resetControllers() { onCommitSuccess, ) + remoteBranchesController := controllers.NewRemoteBranchesController(common) + gui.Controllers = Controllers{ Submodules: submodulesController, Global: controllers.NewGlobalController(common), @@ -655,6 +657,7 @@ func (gui *Gui) resetControllers() { controllers.AttachControllers(gui.State.Contexts.Stash, stashController) controllers.AttachControllers(gui.State.Contexts.Menu, gui.Controllers.Menu) controllers.AttachControllers(gui.State.Contexts.CommitMessage, commitMessageController) + controllers.AttachControllers(gui.State.Contexts.RemoteBranches, remoteBranchesController) controllers.AttachControllers(gui.State.Contexts.Global, gui.Controllers.Sync, gui.Controllers.Undo, gui.Controllers.Global) listControllerFactory := controllers.NewListControllerFactory(gui.c) |