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

Allow having multiple config files

This commit is contained in:
mjarkk
2021-07-27 22:03:37 +02:00
committed by Jesse Duffield
parent db736896bc
commit 913a2fd065
7 changed files with 137 additions and 65 deletions

View File

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