1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Wait for intro before doing any of our refresh functions

We were doing this already for fetching but not for refreshing files so I'm making it consistent.
This commit is contained in:
Jesse Duffield
2023-07-08 15:23:15 +10:00
parent 015a04fac6
commit b19943af01
2 changed files with 16 additions and 9 deletions

View File

@ -722,8 +722,8 @@ func (gui *Gui) runSubprocessWithSuspense(subprocess oscommands.ICmdObj) (bool,
return false, gui.c.Error(err)
}
gui.BackgroundRoutineMgr.PauseBackgroundThreads(true)
defer gui.BackgroundRoutineMgr.PauseBackgroundThreads(false)
gui.BackgroundRoutineMgr.PauseBackgroundRefreshes(true)
defer gui.BackgroundRoutineMgr.PauseBackgroundRefreshes(false)
cmdErr := gui.runSubprocess(subprocess)