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 @@ -390,8 +390,7 @@ private static IEnumerable<Win32> UnregisteredPrograms(List<ProgramSource> sourc
390
390
ShortcutExtension => LnkProgram ( x ) ,
391
391
UrlExtension => UrlProgram ( x ) ,
392
392
_ => Win32Program ( x )
393
- } ) ;
394
-
393
+ } ) . Where ( x => x . Valid ) ;
395
394
396
395
return programs ;
397
396
}
@@ -442,7 +441,7 @@ private static IEnumerable<Win32> AppPathsPrograms(string[] suffixes)
442
441
443
442
var filtered = ExceptDisabledSource ( toFilter ) ;
444
443
445
- return filtered . Select ( GetProgramFromPath ) . ToList ( ) ; // ToList due to disposing issue
444
+ return filtered . Select ( GetProgramFromPath ) . Where ( x => x . Valid ) . ToList ( ) ; // ToList due to disposing issue
446
445
}
447
446
448
447
private static IEnumerable < string > GetPathFromRegistry ( RegistryKey root )
You can’t perform that action at this time.
0 commit comments