mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
[warningsAsErrors] Getting settings online (#6053)
* getting everything to compile * fixing json
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user