mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 10:50:52 +08:00
enhance: do NOT save preference.json while loading
This commit is contained in:
@@ -431,6 +431,9 @@ namespace SourceGit.ViewModels
|
||||
|
||||
public void Save()
|
||||
{
|
||||
if (_isLoading)
|
||||
return;
|
||||
|
||||
var file = Path.Combine(Native.OS.DataDir, "preference.json");
|
||||
var data = JsonSerializer.Serialize(this, JsonCodeGen.Default.Preference);
|
||||
File.WriteAllText(file, data);
|
||||
|
||||
Reference in New Issue
Block a user