Simplify settings handling to not rely on complex properties

This commit is contained in:
Den Delimarsky
2021-05-11 21:41:07 -07:00
parent 65ecfd2424
commit d566d0bdf0
5 changed files with 34 additions and 35 deletions

View File

@@ -10,23 +10,23 @@ namespace Microsoft.PowerToys.Settings.UI.Library
{
public EspressoProperties()
{
KeepDisplayOn = new BoolProperty();
KeepDisplayOn = false;
Mode = EspressoMode.INDEFINITE;
Hours = new IntProperty();
Minutes = new IntProperty();
Hours = 0;
Minutes = 0;
}
[JsonPropertyName("espresso_keep_display_on")]
public BoolProperty KeepDisplayOn { get; set; }
public bool KeepDisplayOn { get; set; }
[JsonPropertyName("espresso_mode")]
public EspressoMode Mode { get; set; }
[JsonPropertyName("espresso_hours")]
public IntProperty Hours { get; set; }
public uint Hours { get; set; }
[JsonPropertyName("espresso_minutes")]
public IntProperty Minutes { get; set; }
public uint Minutes { get; set; }
}
public enum EspressoMode