mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Update Win32.cs
This commit is contained in:
commit
cdde5fae2e
1 changed files with 3 additions and 3 deletions
|
|
@ -376,7 +376,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
.SelectMany(s => ProgramPaths(s.Location, suffixes)))
|
||||
.Distinct();
|
||||
|
||||
var programs = paths.Select(x => GetProgramFromPath(x, protocols)).Where(x => x.Valid);
|
||||
var programs = paths.Select(x => GetProgramFromPath(x, protocols));
|
||||
return programs;
|
||||
}
|
||||
|
||||
|
|
@ -390,7 +390,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
var toFilter = paths1.Concat(paths2);
|
||||
|
||||
var programs = ExceptDisabledSource(toFilter.Distinct())
|
||||
.Select(x => GetProgramFromPath(x, protocols)).Where(x => x.Valid);
|
||||
.Select(x => GetProgramFromPath(x, protocols));
|
||||
return programs;
|
||||
}
|
||||
|
||||
|
|
@ -554,7 +554,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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue