diff --git a/src/ViewModels/Preference.cs b/src/ViewModels/Preference.cs index 5d58bba0..a157a033 100644 --- a/src/ViewModels/Preference.cs +++ b/src/ViewModels/Preference.cs @@ -431,9 +431,6 @@ namespace SourceGit.ViewModels public void Save() { - if (!Native.OS.DataDir.Contains("AppData")) - throw new Exception("xxx"); - var file = Path.Combine(Native.OS.DataDir, "preference.json"); var data = JsonSerializer.Serialize(this, JsonCodeGen.Default.Preference); File.WriteAllText(file, data);