mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-25 11:24:02 +08:00
fix: application data dir may not have been created before crash (#161)
This commit is contained in:
@@ -25,7 +25,7 @@ namespace SourceGit.Models
|
||||
|
||||
static AvatarManager()
|
||||
{
|
||||
_storePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "SourceGit", "avatars");
|
||||
_storePath = Path.Combine(Native.OS.DataDir, "avatars");
|
||||
if (!Directory.Exists(_storePath))
|
||||
Directory.CreateDirectory(_storePath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user