From d1e8bbf9ff398b298cf83cd2e4dfc251d03b03e6 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Thu, 17 Nov 2022 01:27:58 +0800 Subject: [PATCH] Remove toarray() in ProgramsHasher --- Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs index 6d27e579e..5352dbb71 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs @@ -553,7 +553,7 @@ namespace Flow.Launcher.Plugin.Program.Programs if (temp.Any()) return DistinctBy(temp, x => x.Description); return g.Take(1); - }).ToArray(); + }); } @@ -589,7 +589,7 @@ namespace Flow.Launcher.Plugin.Program.Programs autoIndexPrograms = autoIndexPrograms.Concat(path); } - autoIndexPrograms = ProgramsHasher(autoIndexPrograms); + autoIndexPrograms = ProgramsHasher(autoIndexPrograms).ToArray(); return programs.Concat(autoIndexPrograms).Where(x => x.Valid).Distinct().ToArray(); }