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);