mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Comments
This commit is contained in:
parent
7d27d735e2
commit
85256ef42f
2 changed files with 9 additions and 0 deletions
|
|
@ -370,6 +370,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
|
||||
private static IEnumerable<Win32> UnregisteredPrograms(List<ProgramSource> 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)))
|
||||
|
|
|
|||
|
|
@ -9,7 +9,15 @@ namespace Flow.Launcher.Plugin.Program
|
|||
public class Settings
|
||||
{
|
||||
public DateTime LastIndexTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// User-added program sources' directories
|
||||
/// </summary>
|
||||
public List<ProgramSource> ProgramSources { get; set; } = new List<ProgramSource>();
|
||||
|
||||
/// <summary>
|
||||
/// Disabled single programs, not including User-added directories
|
||||
/// </summary>
|
||||
public List<ProgramSource> DisabledProgramSources { get; set; } = new List<ProgramSource>();
|
||||
|
||||
[Obsolete, JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue