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
388388 ShortcutExtension => LnkProgram ( x ) ,
389389 UrlExtension => UrlProgram ( x ) ,
390390 _ => Win32Program ( x )
391- } ) . Where ( x => x . Valid ) ;
391+ } ) ;
392392
393393 return programs ;
394394 }
@@ -410,7 +410,7 @@ private static IEnumerable<Win32> StartMenuPrograms(string[] suffixes)
410410 ShortcutExtension => LnkProgram ( x ) ,
411411 UrlExtension => UrlProgram ( x ) ,
412412 _ => Win32Program ( x )
413- } ) . Where ( x => x . Valid ) ;
413+ } ) ;
414414 return programs ;
415415 }
416416
@@ -439,7 +439,7 @@ private static IEnumerable<Win32> AppPathsPrograms(string[] suffixes)
439439
440440 var filtered = ExceptDisabledSource ( toFilter ) ;
441441
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
443443 }
444444
445445 private static IEnumerable < string > GetPathFromRegistry ( RegistryKey root )
@@ -568,7 +568,7 @@ public static Win32[] All(Settings settings)
568568
569569 autoIndexPrograms = ProgramsHasher ( autoIndexPrograms ) ;
570570
571- return programs . Concat ( autoIndexPrograms ) . Distinct ( ) . ToArray ( ) ;
571+ return programs . Concat ( autoIndexPrograms ) . Where ( x => x . Valid ) . Distinct ( ) . ToArray ( ) ;
572572 }
573573#if DEBUG //This is to make developer aware of any unhandled exception and add in handling.
574574 catch ( Exception )
You can’t perform that action at this time.
0 commit comments