From 8a488ad88e05bbb617e8f4156408838ceb02f4e3 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Thu, 20 Oct 2022 17:22:31 +0800 Subject: [PATCH] CA1829 --- .../Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs index 645c8d984..364977b71 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs @@ -207,7 +207,7 @@ namespace Flow.Launcher.Plugin.Program.Views } } - if (directoriesToAdd.Count > 0) + if (directoriesToAdd.Count() > 0) { directoriesToAdd.ForEach(x => _settings.ProgramSources.Add(x)); directoriesToAdd.ForEach(x => ProgramSettingDisplayList.Add(x)); @@ -231,7 +231,7 @@ namespace Flow.Launcher.Plugin.Program.Views .SelectedItems.Cast() .ToList(); - if (selectedItems.Count == 0) + if (selectedItems.Count() == 0) { string msg = context.API.GetTranslation("flowlauncher_plugin_program_pls_select_program_source"); MessageBox.Show(msg);