tidy the codes
This commit is contained in:
1 parent
e02b420634
commit
97e8d0b8c3
33 files changed
+455
-1319
No files matched your search
@@ -12,7 +12,7 @@ namespace HandyControlDemo.Data
|
||||
try
|
||||
{
|
||||
var json = File.ReadAllText(AppConfig.SavePath);
|
||||
Config = JsonConvert.DeserializeObject<AppConfig>(json);
|
||||
Config = (string.IsNullOrEmpty(json) ? new AppConfig() : JsonConvert.DeserializeObject<AppConfig>(json)) ?? new AppConfig();
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user