diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-07 22:43:19 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-07 22:59:53 +1000 |
commit | 4f700c23ba1bc43c0d42d223470a8c2a8e2408dc (patch) | |
tree | f0fd023d339c1ed28194fc16d584cfb3ee7b391c /pkg/gui/layout.go | |
parent | b69fc19b35f35c17578251fd7b024913c9b7e2bf (diff) |
fix crash on first open
Diffstat (limited to 'pkg/gui/layout.go')
-rw-r--r-- | pkg/gui/layout.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/gui/layout.go b/pkg/gui/layout.go index 52dbbe10c..c6e272ccd 100644 --- a/pkg/gui/layout.go +++ b/pkg/gui/layout.go @@ -375,6 +375,15 @@ func (gui *Gui) onInitialViewsCreation() error { return err } + if !gui.Config.GetUserConfig().DisableStartupPopups { + popupTasks := []func(chan struct{}) error{} + storedPopupVersion := gui.Config.GetAppState().StartupPopupVersion + if storedPopupVersion < StartupPopupVersion { + popupTasks = append(popupTasks, gui.showIntroPopupMessage) + } + gui.showInitialPopups(popupTasks) + } + if gui.showRecentRepos { if err := gui.handleCreateRecentReposMenu(); err != nil { return err |