Use simplified logic also for global config

This commit is contained in:
JustArchi
2021-05-08 22:21:50 +02:00
parent 64b9aa409e
commit 55cd466a1e
2 changed files with 32 additions and 36 deletions

View File

@@ -119,9 +119,7 @@ namespace ArchiSteamFarm.IPC.Controllers.Api {
return BadRequest(new GenericResponse(false, errorMessage));
}
request.GlobalConfig.ShouldSerializeDefaultValues = false;
request.GlobalConfig.ShouldSerializeHelperProperties = false;
request.GlobalConfig.ShouldSerializeSensitiveDetails = true;
request.GlobalConfig.Saving = true;
if (!request.GlobalConfig.IsWebProxyPasswordSet && ASF.GlobalConfig.IsWebProxyPasswordSet) {
request.GlobalConfig.WebProxyPassword = ASF.GlobalConfig.WebProxyPassword;