SettingsManager类添加异常捕获

croire 3 years ago
parent f93306509d
commit f7cd3c734c

@ -81,6 +81,8 @@ namespace DownKyi.Core.Settings
/// </summary>
/// <returns></returns>
private bool SetSettings()
{
try
{
string json = JsonConvert.SerializeObject(appSettings);
@ -90,8 +92,6 @@ namespace DownKyi.Core.Settings
json = Encryptor.EncryptString(json, password);
#endif
try
{
File.WriteAllText(settingsName, json);
return true;
}

Loading…
Cancel
Save