mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix indexing unwanted protocols in custom sources
This commit is contained in:
parent
805680e250
commit
165aa90da1
1 changed files with 2 additions and 3 deletions
|
|
@ -388,8 +388,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
ShortcutExtension => LnkProgram(x),
|
||||
UrlExtension => UrlProgram(x),
|
||||
_ => Win32Program(x)
|
||||
});
|
||||
|
||||
}).Where(x => x.Valid);
|
||||
|
||||
return programs;
|
||||
}
|
||||
|
|
@ -440,7 +439,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
|
||||
var filtered = ExceptDisabledSource(toFilter);
|
||||
|
||||
return filtered.Select(GetProgramFromPath).ToList(); // ToList due to disposing issue
|
||||
return filtered.Select(GetProgramFromPath).Where(x => x.Valid).ToList(); // ToList due to disposing issue
|
||||
}
|
||||
|
||||
private static IEnumerable<string> GetPathFromRegistry(RegistryKey root)
|
||||
|
|
|
|||
Loading…
Reference in a new issue