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

small changes

This commit is contained in:
Jesse Duffield
2021-10-16 12:07:24 +11:00
parent 913a2fd065
commit d02e52989e
8 changed files with 73 additions and 68 deletions

View File

@@ -114,11 +114,7 @@ func (gui *Gui) updateRecentRepoList() error {
known, recentRepos := newRecentReposList(recentRepos, currentRepo)
gui.Config.SetIsNewRepo(known)
gui.Config.GetAppState().RecentRepos = recentRepos
err = gui.Config.SaveAppState()
if err != nil && os.IsPermission(err) {
return nil
}
return err
return gui.Config.SaveAppState()
}
// newRecentReposList returns a new repo list with a new entry but only when it doesn't exist yet