diff --git a/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml b/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml index c19347f2a..bf6de50fe 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml +++ b/Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml @@ -48,7 +48,8 @@ Please select a program source Are you sure you want to delete the selected program sources? - Please select program sources that you added + Please select program sources that are not added by you + Please select program sources that are added by you Another program source with the same location already exists. Program Source diff --git a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs index 71879181e..59ee40c12 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs @@ -303,6 +303,13 @@ namespace Flow.Launcher.Plugin.Program.Views return; } + if (IsAllItemsUserAdded(selectedItems)) + { + var msg1 = context.API.GetTranslation("flowlauncher_plugin_program_delete_program_source_not_user_added"); + context.API.ShowMsgBox(msg1); + return; + } + if (HasMoreOrEqualEnabledItems(selectedItems)) { await ProgramSettingDisplay.SetProgramSourcesStatusAsync(selectedItems, false);