Don't handle any errors on json setting load to make sure setting file is not corrupt

This commit is contained in:
Jaex 2019-08-21 16:19:53 +03:00
parent 20f4be3ce5
commit 6141994cfb

View file

@ -219,7 +219,6 @@ private static T LoadInternal(string filePath, string backupFolder = null)
JsonSerializer serializer = new JsonSerializer();
serializer.Converters.Add(new StringEnumConverter());
serializer.ObjectCreationHandling = ObjectCreationHandling.Replace;
serializer.Error += (sender, e) => e.ErrorContext.Handled = true;
settings = serializer.Deserialize<T>(jsonReader);
}