Files
PowerToys/src/modules/launcher/Plugins/Microsoft.Plugin.Program/ProgramPluginSettings.cs
Heiko e4e1b5b43d [PTRun][Program]Run commands: Support for MSC and CPL (#23668)
* code changes

* spell fix

* dev docs

* update tests

* Code improvement
2023-02-13 19:15:25 +00:00

35 lines
1.2 KiB
C#

// 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.Collections.Generic;
namespace Microsoft.Plugin.Program
{
public class ProgramPluginSettings
{
public DateTime LastIndexTime { get; set; }
public List<ProgramSource> ProgramSources { get; set; } = new List<ProgramSource>();
public List<DisabledProgramSource> DisabledProgramSources { get; set; } = new List<DisabledProgramSource>();
public List<string> ProgramSuffixes { get; set; } = new List<string>() { "bat", "appref-ms", "exe", "lnk", "url" };
public List<string> RunCommandSuffixes { get; set; } = new List<string>() { "bat", "appref-ms", "exe", "lnk", "url", "cpl", "msc" };
public bool EnableStartMenuSource { get; set; } = true;
public bool EnableDesktopSource { get; set; } = true;
public bool EnableRegistrySource { get; set; } = true;
public bool EnablePathEnvironmentVariableSource { get; set; } = true;
public double MinScoreThreshold { get; set; } = 0.75;
internal const char SuffixSeparator = ';';
}
}