Skip to content

Commit cdde5fa

Browse files
Update Win32.cs
2 parents 0079a88 + 3a56bf4 commit cdde5fa

File tree

1 file changed

+3
-3
lines changed
  • Plugins/Flow.Launcher.Plugin.Program/Programs

1 file changed

+3
-3
lines changed

Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ private static IEnumerable<Win32> UnregisteredPrograms(List<ProgramSource> sourc
376376
.SelectMany(s => ProgramPaths(s.Location, suffixes)))
377377
.Distinct();
378378

379-
var programs = paths.Select(x => GetProgramFromPath(x, protocols)).Where(x => x.Valid);
379+
var programs = paths.Select(x => GetProgramFromPath(x, protocols));
380380
return programs;
381381
}
382382

@@ -390,7 +390,7 @@ private static IEnumerable<Win32> StartMenuPrograms(string[] suffixes, string[]
390390
var toFilter = paths1.Concat(paths2);
391391

392392
var programs = ExceptDisabledSource(toFilter.Distinct())
393-
.Select(x => GetProgramFromPath(x, protocols)).Where(x => x.Valid);
393+
.Select(x => GetProgramFromPath(x, protocols));
394394
return programs;
395395
}
396396

@@ -554,7 +554,7 @@ public static Win32[] All(Settings settings)
554554

555555
autoIndexPrograms = ProgramsHasher(autoIndexPrograms);
556556

557-
return programs.Concat(autoIndexPrograms).Distinct().ToArray();
557+
return programs.Concat(autoIndexPrograms).Where(x => x.Valid).Distinct().ToArray();
558558
}
559559
#if DEBUG //This is to make developer aware of any unhandled exception and add in handling.
560560
catch (Exception)

0 commit comments

Comments
 (0)