File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Plugins/Flow.Launcher.Plugin.Program/Programs Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ private static IEnumerable<Win32> UnregisteredPrograms(List<ProgramSource> sourc
376
376
. SelectMany ( s => ProgramPaths ( s . Location , suffixes ) ) )
377
377
. Distinct ( ) ;
378
378
379
- var programs = paths . Select ( x => GetProgramFromPath ( x , protocols ) ) . Where ( x => x . Valid ) ;
379
+ var programs = paths . Select ( x => GetProgramFromPath ( x , protocols ) ) ;
380
380
return programs ;
381
381
}
382
382
@@ -390,7 +390,7 @@ private static IEnumerable<Win32> StartMenuPrograms(string[] suffixes, string[]
390
390
var toFilter = paths1 . Concat ( paths2 ) ;
391
391
392
392
var programs = ExceptDisabledSource ( toFilter . Distinct ( ) )
393
- . Select ( x => GetProgramFromPath ( x , protocols ) ) . Where ( x => x . Valid ) ;
393
+ . Select ( x => GetProgramFromPath ( x , protocols ) ) ;
394
394
return programs ;
395
395
}
396
396
@@ -554,7 +554,7 @@ public static Win32[] All(Settings settings)
554
554
555
555
autoIndexPrograms = ProgramsHasher ( autoIndexPrograms ) ;
556
556
557
- return programs . Concat ( autoIndexPrograms ) . Distinct ( ) . ToArray ( ) ;
557
+ return programs . Concat ( autoIndexPrograms ) . Where ( x => x . Valid ) . Distinct ( ) . ToArray ( ) ;
558
558
}
559
559
#if DEBUG //This is to make developer aware of any unhandled exception and add in handling.
560
560
catch ( Exception )
You can’t perform that action at this time.
0 commit comments