diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs index cc16a1ac7..fbb3ea32c 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs @@ -390,7 +390,6 @@ namespace Flow.Launcher.Plugin.Program.Programs _ => Win32Program(x) }); - return programs; } @@ -411,7 +410,7 @@ namespace Flow.Launcher.Plugin.Program.Programs ShortcutExtension => LnkProgram(x), UrlExtension => UrlProgram(x), _ => Win32Program(x) - }).Where(x => x.Valid); + }); return programs; } @@ -569,7 +568,7 @@ namespace Flow.Launcher.Plugin.Program.Programs autoIndexPrograms = ProgramsHasher(autoIndexPrograms); - return programs.Concat(autoIndexPrograms).Distinct().ToArray(); + return programs.Concat(autoIndexPrograms).Where(x => x.Valid).Distinct().ToArray(); } #if DEBUG //This is to make developer aware of any unhandled exception and add in handling. catch (Exception)