File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Plugins/Flow.Launcher.Plugin.Program/Programs Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -440,9 +440,9 @@ private static IEnumerable<Win32> StartMenuPrograms(string[] suffixes, string[]
440
440
private static IEnumerable < Win32 > PATHPrograms ( string [ ] suffixes , string [ ] protocols , List < string > commonParents )
441
441
{
442
442
var pathEnv = Environment . GetEnvironmentVariable ( "Path" ) ;
443
- if ( String . IsNullOrEmpty ( pathEnv ) )
444
- {
445
- return Array . Empty < Win32 > ( ) ;
443
+ if ( String . IsNullOrEmpty ( pathEnv ) )
444
+ {
445
+ return Array . Empty < Win32 > ( ) ;
446
446
}
447
447
448
448
var paths = pathEnv . Split ( ";" , StringSplitOptions . RemoveEmptyEntries ) . DistinctBy ( p => p . ToLowerInvariant ( ) ) ;
@@ -722,7 +722,8 @@ public static void WatchDirectory(string directory, string[] extensions)
722
722
watcher . Deleted += static ( _ , _ ) => indexQueue . Writer . TryWrite ( default ) ;
723
723
watcher . EnableRaisingEvents = true ;
724
724
watcher . IncludeSubdirectories = true ;
725
- foreach ( var extension in extensions ) {
725
+ foreach ( var extension in extensions )
726
+ {
726
727
watcher . Filters . Add ( $ "*.{ extension } ") ;
727
728
}
728
729
@@ -760,7 +761,7 @@ private static List<string> GetCommonParents(IEnumerable<ProgramSource> programS
760
761
foreach ( var source in group )
761
762
{
762
763
if ( parents . Any ( p => IsSubPathOf ( source . Location , p . Location ) &&
763
- source != p ) ) // TODO startwith not accurate
764
+ source != p ) )
764
765
{
765
766
parents . Remove ( source ) ;
766
767
}
You can’t perform that action at this time.
0 commit comments