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 | |
parent | b69fc19b35f35c17578251fd7b024913c9b7e2bf (diff) |
fix crash on first open
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/gui.go | 9 | ||||
-rw-r--r-- | pkg/gui/layout.go | 9 |
2 files changed, 9 insertions, 9 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 3da085f2f..5b5a3426d 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -515,15 +515,6 @@ func (gui *Gui) Run() 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) - } - gui.waitForIntro.Add(1) if gui.Config.GetUserConfig().Git.AutoFetch { go utils.Safe(gui.startBackgroundFetch) 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 |