Skip to content

Commit a523584

Browse files
Fix indexing unwanted protocols in custom sources
1 parent f6c842d commit a523584

File tree

1 file changed

+2
-3
lines changed
  • Plugins/Flow.Launcher.Plugin.Program/Programs

1 file changed

+2
-3
lines changed

Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,7 @@ private static IEnumerable<Win32> UnregisteredPrograms(List<ProgramSource> sourc
390390
ShortcutExtension => LnkProgram(x),
391391
UrlExtension => UrlProgram(x),
392392
_ => Win32Program(x)
393-
});
394-
393+
}).Where(x => x.Valid);
395394

396395
return programs;
397396
}
@@ -442,7 +441,7 @@ private static IEnumerable<Win32> AppPathsPrograms(string[] suffixes)
442441

443442
var filtered = ExceptDisabledSource(toFilter);
444443

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
446445
}
447446

448447
private static IEnumerable<string> GetPathFromRegistry(RegistryKey root)

0 commit comments

Comments
 (0)