mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
fix<Avatar>: fix crash when more than one thread wants to access same avatar file
This commit is contained in:
parent
6f08d03d04
commit
c22ea8f4cf
3 changed files with 49 additions and 46 deletions
|
@ -103,6 +103,9 @@ namespace SourceGit {
|
|||
Setting = JsonSerializer.Deserialize<Preference>(File.ReadAllText(settingFile));
|
||||
}
|
||||
|
||||
// Make sure avatar cache folder exists
|
||||
if (!Directory.Exists(Helpers.Avatar.CACHE_PATH)) Directory.CreateDirectory(Helpers.Avatar.CACHE_PATH);
|
||||
|
||||
// Try auto configure git via registry.
|
||||
if (Setting == null || !IsGitConfigured) {
|
||||
var root = RegistryKey.OpenBaseKey(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue