mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
fix: application data dir may not have been created before crash (#161)
This commit is contained in:
parent
f1f54bf6fe
commit
49ce07443e
4 changed files with 8 additions and 12 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue