using System.Collections.Generic; using System.IO; using Wox.Plugin.Program.Programs; namespace Wox.Plugin.Program { public class Settings { public List ProgramSources { get; set; } = new List(); public string[] ProgramSuffixes { get; set; } = {"bat", "appref-ms", "exe", "lnk"}; public bool EnableStartMenuSource { get; set; } = true; public bool EnableRegistrySource { get; set; } = true; public bool EnableProgramSourceOnly { get; set; } = false; internal const char SuffixSeperator = ';'; /// /// Contains user added folder location contents as well as all user disabled applications /// /// /// Win32 class applications sets UniqueIdentifier using their full path /// UWP class applications sets UniqueIdentifier using their Application User Model ID /// public class ProgramSource { private string name; public string Location { get; set; } public string Name { get => name ?? new DirectoryInfo(Location).Name; set => name = value; } public bool Enabled { get; set; } = true; public string UniqueIdentifier { get; set; } } } }