/ src / settings-ui / Settings.UI.Library / PowerPreviewSettings.cs
PowerPreviewSettings.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 PowerPreviewSettings : BasePTModuleSettings, ISettingsConfig
12      {
13          public const string ModuleName = "File Explorer";
14  
15          [JsonPropertyName("properties")]
16          public PowerPreviewProperties Properties { get; set; }
17  
18          public PowerPreviewSettings()
19          {
20              Properties = new PowerPreviewProperties();
21              Version = "1";
22              Name = ModuleName;
23          }
24  
25          public string GetModuleName()
26          {
27              return Name;
28          }
29  
30          // This can be utilized in the future if the settings.json file is to be modified/deleted.
31          public bool UpgradeSettingsConfiguration()
32          {
33              return false;
34          }
35      }
36  }