File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Plugins/Flow.Launcher.Plugin.Program/Programs Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -388,8 +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
- } ) ;
392
-
391
+ } ) . Where ( x => x . Valid ) ;
393
392
394
393
return programs ;
395
394
}
@@ -440,7 +439,7 @@ private static IEnumerable<Win32> AppPathsPrograms(string[] suffixes)
440
439
441
440
var filtered = ExceptDisabledSource ( toFilter ) ;
442
441
443
- return filtered . Select ( GetProgramFromPath ) . ToList ( ) ; // ToList due to disposing issue
442
+ return filtered . Select ( GetProgramFromPath ) . Where ( x => x . Valid ) . ToList ( ) ; // ToList due to disposing issue
444
443
}
445
444
446
445
private static IEnumerable < string > GetPathFromRegistry ( RegistryKey root )
You can’t perform that action at this time.
0 commit comments