/ src / settings-ui / Settings.UI.Library / RegistryPreviewSettings.cs
RegistryPreviewSettings.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  using System.Text.Json.Serialization;
 6  
 7  using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
 8  
 9  namespace Microsoft.PowerToys.Settings.UI.Library
10  {
11      public class RegistryPreviewSettings : BasePTModuleSettings, ISettingsConfig
12      {
13          public const string ModuleName = "RegistryPreview";
14  
15          [JsonPropertyName("properties")]
16          public RegistryPreviewProperties Properties { get; set; }
17  
18          public RegistryPreviewSettings()
19          {
20              Properties = new RegistryPreviewProperties();
21              Version = "1";
22              Name = ModuleName;
23          }
24  
25          public string GetModuleName()
26              => Name;
27  
28          // This can be utilized in the future if the settings.json file is to be modified/deleted.
29          public bool UpgradeSettingsConfiguration()
30              => false;
31      }
32  }