diff --git a/src/ViewModels/Preference.cs b/src/ViewModels/Preference.cs index a157a033..1611fe3e 100644 --- a/src/ViewModels/Preference.cs +++ b/src/ViewModels/Preference.cs @@ -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);