Update to settings logic.

Also making sure that the proper headers are set, and that all extraneous content is removed where not necessary. This should get the foundation going for the initial set of settings, and enables me to connect the view model to the settings UI.
This commit is contained in:
Den Delimarsky
2021-03-24 08:10:37 -07:00
parent 32984dc126
commit ee932450df
6 changed files with 61 additions and 333 deletions

View File

@@ -143,6 +143,22 @@ namespace Microsoft.PowerToys.Settings.UI.Library
}
}
private bool espresso = true;
[JsonPropertyName("Espresso")]
public bool Espresso
{
get => espresso;
set
{
if (espresso != value)
{
LogTelemetryEvent(value);
espresso = value;
}
}
}
public string ToJsonString()
{
return JsonSerializer.Serialize(this);