mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Don't handle any errors on json setting load to make sure setting file is not corrupt
This commit is contained in:
parent
20f4be3ce5
commit
6141994cfb
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue