diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-06-07 17:41:17 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-06-07 18:27:18 +1000 |
commit | c92e687d3bb405086c66c47475359e304ed42166 (patch) | |
tree | ef4ffb70231341848698a1750c6d7821b8ac27ff /pkg/app | |
parent | b6a31369da3f42c1254f6d5ba0ca4e4cb79f42f7 (diff) |
Fix focus issue when opening recent-repos menu at launch
I don't know why we were setting the initial context to CurrentSideContext
and not just CurrentContext in the first place. If there is no current context
in either case it'll default to the files context. So the only issue is if
we anticipated that some random context would be focused and we didn't want to
activate that. But I can't think of any situation where that would happen.
Diffstat (limited to 'pkg/app')
-rw-r--r-- | pkg/app/app.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/app/app.go b/pkg/app/app.go index e77d2868c..59730780d 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -120,6 +120,11 @@ func NewApp(config config.AppConfigurer, common *common.Common) (*App, error) { return app, err } + // used for testing purposes + if os.Getenv("SHOW_RECENT_REPOS") == "true" { + showRecentRepos = true + } + app.Gui, err = gui.NewGui(common, config, gitVersion, updater, showRecentRepos, dirName) if err != nil { return app, err |