File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Plugins/Flow.Launcher.Plugin.Program/Programs Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -379,12 +379,15 @@ private static string Extension(string path)
379
379
private static IEnumerable < Win32 > UnregisteredPrograms ( List < ProgramSource > sources , string [ ] suffixes , string [ ] protocols )
380
380
{
381
381
// Disabled custom sources are not in DisabledProgramSources
382
- var paths = ExceptDisabledSource ( sources . Where ( s => Directory . Exists ( s . Location ) && s . Enabled )
382
+ var paths = sources . Where ( s => Directory . Exists ( s . Location ) && s . Enabled )
383
+ . Distinct ( )
383
384
. AsParallel ( )
384
- . SelectMany ( s => ProgramPaths ( s . Location , suffixes ) ) )
385
- . Distinct ( ) ;
385
+ . SelectMany ( s => ProgramPaths ( s . Location , suffixes ) ) ;
386
386
387
- var programs = paths . Select ( x => GetProgramFromPath ( x , protocols ) ) ;
387
+ // Remove disabled programs in DisabledProgramSources
388
+ var programs = ExceptDisabledSource ( paths )
389
+
390
+ . Select ( x => GetProgramFromPath ( x , protocols ) ) ;
388
391
return programs ;
389
392
}
390
393
@@ -569,7 +572,7 @@ public static Win32[] All(Settings settings)
569
572
570
573
programs = programs . Concat ( unregistered ) ;
571
574
572
- var autoIndexPrograms = Enumerable . Empty < Win32 > ( ) ;
575
+ var autoIndexPrograms = Enumerable . Empty < Win32 > ( ) ; // for single programs, not folders
573
576
574
577
if ( settings . EnableRegistrySource )
575
578
{
You can’t perform that action at this time.
0 commit comments