File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Plugins/Flow.Launcher.Plugin.Program/Programs Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ private static IEnumerable<Win32> UnregisteredPrograms(List<Settings.ProgramSour
388
388
ShortcutExtension => LnkProgram ( x ) ,
389
389
UrlExtension => UrlProgram ( x ) ,
390
390
_ => Win32Program ( x )
391
- } ) . Where ( x => x . Valid ) ;
391
+ } ) ;
392
392
393
393
return programs ;
394
394
}
@@ -410,7 +410,7 @@ private static IEnumerable<Win32> StartMenuPrograms(string[] suffixes)
410
410
ShortcutExtension => LnkProgram ( x ) ,
411
411
UrlExtension => UrlProgram ( x ) ,
412
412
_ => Win32Program ( x )
413
- } ) . Where ( x => x . Valid ) ;
413
+ } ) ;
414
414
return programs ;
415
415
}
416
416
@@ -439,7 +439,7 @@ private static IEnumerable<Win32> AppPathsPrograms(string[] suffixes)
439
439
440
440
var filtered = ExceptDisabledSource ( toFilter ) ;
441
441
442
- return filtered . Select ( GetProgramFromPath ) . Where ( x => x . Valid ) . ToList ( ) ; // ToList due to disposing issue
442
+ return filtered . Select ( GetProgramFromPath ) . ToList ( ) ; // ToList due to disposing issue
443
443
}
444
444
445
445
private static IEnumerable < string > GetPathFromRegistry ( RegistryKey root )
@@ -568,7 +568,7 @@ public static Win32[] All(Settings settings)
568
568
569
569
autoIndexPrograms = ProgramsHasher ( autoIndexPrograms ) ;
570
570
571
- return programs . Concat ( autoIndexPrograms ) . Distinct ( ) . ToArray ( ) ;
571
+ return programs . Concat ( autoIndexPrograms ) . Where ( x => x . Valid ) . Distinct ( ) . ToArray ( ) ;
572
572
}
573
573
#if DEBUG //This is to make developer aware of any unhandled exception and add in handling.
574
574
catch ( Exception )
You can’t perform that action at this time.
0 commit comments