diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-16 14:14:09 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-30 18:35:22 +1000 |
commit | 077ae9943879b994531c60e9700df67ee0ab2373 (patch) | |
tree | 97317e06da218c53afe954219ef1094ea14007b6 /pkg/gui/controllers.go | |
parent | fe8adf9eb863a226de9d514216a261f988122cc5 (diff) |
Prompt to switch to worktree when branch is checked out by other worktree
Diffstat (limited to 'pkg/gui/controllers.go')
-rw-r--r-- | pkg/gui/controllers.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/gui/controllers.go b/pkg/gui/controllers.go index c883c3cc5..c02d6bae2 100644 --- a/pkg/gui/controllers.go +++ b/pkg/gui/controllers.go @@ -45,7 +45,8 @@ func (gui *Gui) resetHelpersAndControllers() { patchBuildingHelper := helpers.NewPatchBuildingHelper(helperCommon) stagingHelper := helpers.NewStagingHelper(helperCommon) mergeConflictsHelper := helpers.NewMergeConflictsHelper(helperCommon) - worktreeHelper := helpers.NewWorktreeHelper(helperCommon) + reposHelper := helpers.NewRecentReposHelper(helperCommon, recordDirectoryHelper, gui.onNewRepo) + worktreeHelper := helpers.NewWorktreeHelper(helperCommon, reposHelper) refreshHelper := helpers.NewRefreshHelper( helperCommon, refsHelper, @@ -94,7 +95,7 @@ func (gui *Gui) resetHelpersAndControllers() { Commits: commitsHelper, Snake: helpers.NewSnakeHelper(helperCommon), Diff: diffHelper, - Repos: helpers.NewRecentReposHelper(helperCommon, recordDirectoryHelper, gui.onNewRepo), + Repos: reposHelper, RecordDirectory: recordDirectoryHelper, Update: helpers.NewUpdateHelper(helperCommon, gui.Updater), Window: windowHelper, |