diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs index 5a3295c38..52673cc1d 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs @@ -370,6 +370,7 @@ namespace Flow.Launcher.Plugin.Program.Programs private static IEnumerable UnregisteredPrograms(List sources, string[] suffixes, string[] protocols) { + // Disabled custom sources are not in DisabledProgramSources var paths = ExceptDisabledSource(sources.Where(s => Directory.Exists(s.Location) && s.Enabled) .AsParallel() .SelectMany(s => ProgramPaths(s.Location, suffixes))) diff --git a/Plugins/Flow.Launcher.Plugin.Program/Settings.cs b/Plugins/Flow.Launcher.Plugin.Program/Settings.cs index 44d4483b9..fb28c1cf2 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Settings.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Settings.cs @@ -9,7 +9,15 @@ namespace Flow.Launcher.Plugin.Program public class Settings { public DateTime LastIndexTime { get; set; } + + /// + /// User-added program sources' directories + /// public List ProgramSources { get; set; } = new List(); + + /// + /// Disabled single programs, not including User-added directories + /// public List DisabledProgramSources { get; set; } = new List(); [Obsolete, JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]