diff --git a/Plugins/Flow.Launcher.Plugin.Program/Views/Models/ProgramSource.cs b/Plugins/Flow.Launcher.Plugin.Program/Views/Models/ProgramSource.cs index 7d7ca8902..a2cdb44f1 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Views/Models/ProgramSource.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Views/Models/ProgramSource.cs @@ -16,7 +16,7 @@ namespace Flow.Launcher.Plugin.Program.Views.Models { private string name; - public string Location; + public string Location { get; set; } public string Name { get => name ?? new DirectoryInfo(Location).Name; set => name = value; } public bool Enabled { get; set; } = true; private string uid { get; set; } @@ -26,13 +26,13 @@ namespace Flow.Launcher.Plugin.Program.Views.Models /// public string UniqueIdentifier { get => uid; set => uid = value.ToLowerInvariant(); } - //public ProgramSource() {} + public ProgramSource() { } // only for json deserialization /// - /// Custom user added source. + /// Add source by location /// - /// - /// + /// location of program source + /// enabled public ProgramSource(string location, bool enabled=true) { Location = location; @@ -74,7 +74,7 @@ namespace Flow.Launcher.Plugin.Program.Views.Models public class DisabledProgramSource : ProgramSource { - //public DisabledProgramSource() { } + public DisabledProgramSource() { } // only for json deserialization public DisabledProgramSource(string location) : base(location, false) { }