1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

fix crash on first open

This commit is contained in:
Jesse Duffield
2021-04-07 22:43:19 +10:00
parent b69fc19b35
commit 4f700c23ba
23 changed files with 54 additions and 9 deletions

View File

@ -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)