Add display of all loaded applications

This commit is contained in:
Jeremy Wu
2019-09-06 08:06:51 +10:00
parent f51c391e84
commit 9d3f0d45d5
7 changed files with 43 additions and 10 deletions

View File

@@ -263,15 +263,15 @@ namespace Wox.Plugin.Program.Programs
private static ParallelQuery<Win32> UnregisteredPrograms(List<Settings.ProgramSource> sources, string[] suffixes)
{
var list = new List<string>();
sources.Where(s => Directory.Exists(s.Location) && s.EnableIndexing)
sources.Where(s => Directory.Exists(s.Location) && s.Enabled)
.SelectMany(s => ProgramPaths(s.Location, suffixes))
.ToList()
.ForEach(x => list.Add(x));
sources.Where(x=> File.Exists(x.LocationFile) && x.EnableIndexing)
.Select(y => y.LocationFile)
sources.Where(s => File.Exists(s.Location) && s.Enabled)
.Select(s => s.Location)
.ToList()
.ForEach(z => list.Add(z));
.ForEach(x => list.Add(x));
var paths = list.ToArray();