mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-26 04:44:59 +00:00
Alternative path for save settings
Some users with not good skills may not found folder with setting when delete installation Using ~/.source-git folder can reduce difficult for delete settings
This commit is contained in:
parent
7e4e339a0c
commit
6f51d6f75a
3 changed files with 5 additions and 5 deletions
|
@ -43,8 +43,8 @@ namespace SourceGit
|
|||
builder.Append(ex.StackTrace);
|
||||
|
||||
var time = DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss");
|
||||
var file = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
|
||||
"SourceGit",
|
||||
var file = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
|
||||
".source-git",
|
||||
$"crash_{time}.log");
|
||||
File.WriteAllText(file, builder.ToString());
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace SourceGit.Models
|
|||
|
||||
static AvatarManager()
|
||||
{
|
||||
_storePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "SourceGit", "avatars");
|
||||
_storePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".source-git", "avatars");
|
||||
if (!Directory.Exists(_storePath))
|
||||
Directory.CreateDirectory(_storePath);
|
||||
|
||||
|
|
|
@ -435,8 +435,8 @@ namespace SourceGit.ViewModels
|
|||
|
||||
private static Preference _instance = null;
|
||||
private static readonly string _savePath = Path.Combine(
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
|
||||
"SourceGit",
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
|
||||
".source-git",
|
||||
"preference.json");
|
||||
|
||||
private string _locale = "en_US";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue