better deserialization
This commit is contained in:
parent
7ed993e51d
commit
0e787bbca8
|
@ -89,6 +89,8 @@ namespace BSLManager.Tools
|
|||
}
|
||||
|
||||
private LocalSettingsData GetLocalSettingsFile()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!File.Exists(LocalFileName)) return null;
|
||||
|
||||
|
@ -96,6 +98,11 @@ namespace BSLManager.Tools
|
|||
var content = JsonConvert.DeserializeObject<LocalSettingsData>(jsonContent);
|
||||
return content;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private void SaveLocalSettings(LocalSettingsData data)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue