2024-09-19 09:12:24 -07:00
|
|
|
|
// Copyright (c) Microsoft Corporation
|
|
|
|
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Globalization;
|
|
|
|
|
|
using System.Text.Json;
|
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
using System.Text.RegularExpressions;
|
2024-10-17 05:14:57 -04:00
|
|
|
|
|
2024-09-19 09:12:24 -07:00
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
|
|
|
|
|
using Settings.UI.Library.Resources;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
|
|
|
|
|
{
|
2024-09-30 16:54:07 +01:00
|
|
|
|
public class NewPlusSettings : BasePTModuleSettings, ISettingsConfig
|
2024-09-19 09:12:24 -07:00
|
|
|
|
{
|
|
|
|
|
|
public const string ModuleName = "NewPlus";
|
2024-09-30 16:54:07 +01:00
|
|
|
|
public const string ModuleVersion = "1.0";
|
2024-09-19 09:12:24 -07:00
|
|
|
|
|
2024-09-30 16:54:07 +01:00
|
|
|
|
[JsonPropertyName("properties")]
|
|
|
|
|
|
public NewPlusProperties Properties { get; set; }
|
2024-09-19 09:12:24 -07:00
|
|
|
|
|
2024-09-30 16:54:07 +01:00
|
|
|
|
public NewPlusSettings()
|
2024-09-19 09:12:24 -07:00
|
|
|
|
{
|
2024-09-30 16:54:07 +01:00
|
|
|
|
Name = ModuleName;
|
|
|
|
|
|
Version = ModuleVersion;
|
|
|
|
|
|
Properties = new NewPlusProperties();
|
2024-09-19 09:12:24 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string GetModuleName()
|
|
|
|
|
|
{
|
2024-09-30 16:54:07 +01:00
|
|
|
|
return Name;
|
2024-09-19 09:12:24 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-09-30 16:54:07 +01:00
|
|
|
|
// This can be utilized in the future if the settings.json file is to be modified/deleted.
|
2024-09-19 09:12:24 -07:00
|
|
|
|
public bool UpgradeSettingsConfiguration()
|
|
|
|
|
|
{
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|