[warningsAsErrors] Getting settings online (#6053)

* getting everything to compile

* fixing json
This commit is contained in:
Clint Rutkas
2020-08-19 15:59:10 -07:00
committed by GitHub
parent 9724afd9ec
commit dc744f236e
46 changed files with 162 additions and 213 deletions

View File

@@ -3,13 +3,15 @@
// See the LICENSE file in the project root for more information.
using System.Text.Json;
using System.Text.Json.Serialization;
namespace Microsoft.PowerToys.Settings.UI.Lib
{
// Represents a powertoys module settings setnt to the runner.
public class SndModuleSettings<T>
{
public T powertoys { get; set; }
[JsonPropertyName("powertoys")]
public T PowertoysSetting { get; set; }
public SndModuleSettings()
{
@@ -17,7 +19,7 @@ namespace Microsoft.PowerToys.Settings.UI.Lib
public SndModuleSettings(T settings)
{
this.powertoys = settings;
PowertoysSetting = settings;
}
public string ToJsonString()