File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Plugins/Flow.Launcher.Plugin.Program/Programs Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ private static IEnumerable<Win32> UnregisteredPrograms(List<ProgramSource> sourc
385
385
. SelectMany ( s => ProgramPaths ( s . Location , suffixes ) ) ;
386
386
387
387
// Remove disabled programs in DisabledProgramSources
388
- var programs = ExceptDisabledSource ( paths )
388
+ var programs = ExceptDisabledSource ( paths ) . Select ( x => GetProgramFromPath ( x , protocols ) ) ;
389
389
390
390
. Select ( x => GetProgramFromPath ( x , protocols ) ) ;
391
391
return programs ;
@@ -418,13 +418,7 @@ private static IEnumerable<Win32> PATHPrograms(string[] suffixes, string[] proto
418
418
var toFilter = paths . AsParallel ( ) . SelectMany ( p => ProgramPaths ( p , suffixes , recursive : false ) ) ;
419
419
420
420
var programs = ExceptDisabledSource ( toFilter . Distinct ( ) )
421
- . Select ( x => Extension ( x ) switch
422
- {
423
- ShortcutExtension => LnkProgram ( x ) ,
424
- UrlExtension => UrlProgram ( x , protocols ) ,
425
- ExeExtension => ExeProgram ( x ) ,
426
- _ => Win32Program ( x )
427
- } ) ;
421
+ . Select ( x => GetProgramFromPath ( x , protocols ) ) ;
428
422
return programs ;
429
423
}
430
424
You can’t perform that action at this time.
0 commit comments