mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge branch 'dev' into FixNarrowSizes
This commit is contained in:
commit
2e1020f098
1 changed files with 3 additions and 3 deletions
|
|
@ -447,9 +447,9 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
||||||
|
|
||||||
var paths = pathEnv.Split(";", StringSplitOptions.RemoveEmptyEntries).DistinctBy(p => p.ToLowerInvariant());
|
var paths = pathEnv.Split(";", StringSplitOptions.RemoveEmptyEntries).DistinctBy(p => p.ToLowerInvariant());
|
||||||
|
|
||||||
paths = paths.Where(x => commonParents.All(parent => !x.StartsWith(parent, StringComparison.OrdinalIgnoreCase)));
|
var toFilter = paths.Where(x => commonParents.All(parent => !IsSubPathOf(x, parent)))
|
||||||
|
.AsParallel()
|
||||||
var toFilter = paths.AsParallel().SelectMany(p => EnumerateProgramsInDir(p, suffixes, recursive: false));
|
.SelectMany(p => EnumerateProgramsInDir(p, suffixes, recursive: false));
|
||||||
|
|
||||||
var programs = ExceptDisabledSource(toFilter.Distinct())
|
var programs = ExceptDisabledSource(toFilter.Distinct())
|
||||||
.Select(x => GetProgramFromPath(x, protocols));
|
.Select(x => GetProgramFromPath(x, protocols));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue