File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Plugins/Flow.Launcher.Plugin.Program/Programs Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -318,14 +318,14 @@ private static Win32 ExeProgram(string path)
318
318
}
319
319
}
320
320
321
- private static IEnumerable < string > ProgramPaths ( string directory , string [ ] suffixes )
321
+ private static IEnumerable < string > ProgramPaths ( string directory , string [ ] suffixes , bool recursive = true )
322
322
{
323
323
if ( ! Directory . Exists ( directory ) )
324
324
return Enumerable . Empty < string > ( ) ;
325
325
326
326
return Directory . EnumerateFiles ( directory , "*" , new EnumerationOptions
327
327
{
328
- IgnoreInaccessible = true , RecurseSubdirectories = true
328
+ IgnoreInaccessible = true , RecurseSubdirectories = recursive
329
329
} ) . Where ( x => suffixes . Contains ( Extension ( x ) ) ) ;
330
330
}
331
331
@@ -393,7 +393,7 @@ private static IEnumerable<Win32> PATHPrograms(string[] suffixes)
393
393
394
394
foreach ( var path in paths )
395
395
{
396
- var p = ProgramPaths ( path , suffixes ) ;
396
+ var p = ProgramPaths ( path , suffixes , recursive : false ) ;
397
397
toFilter . AddRange ( p ) ;
398
398
}
399
399
var programs = ExceptDisabledSource ( toFilter . Distinct ( ) )
You can’t perform that action at this time.
0 commit comments