Skip to content

Commit 284729a

Browse files
committed
Improve message noticification
1 parent e0ac6d5 commit 284729a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Plugins/Flow.Launcher.Plugin.Program/Languages/en.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848

4949
<system:String x:Key="flowlauncher_plugin_program_pls_select_program_source">Please select a program source</system:String>
5050
<system:String x:Key="flowlauncher_plugin_program_delete_program_source">Are you sure you want to delete the selected program sources?</system:String>
51-
<system:String x:Key="flowlauncher_plugin_program_delete_program_source_not_user_added">Please select program sources that you added</system:String>
51+
<system:String x:Key="flowlauncher_plugin_program_delete_program_source_user_added">Please select program sources that are not added by you</system:String>
52+
<system:String x:Key="flowlauncher_plugin_program_delete_program_source_not_user_added">Please select program sources that are added by you</system:String>
5253
<system:String x:Key="flowlauncher_plugin_program_duplicate_program_source">Another program source with the same location already exists.</system:String>
5354

5455
<system:String x:Key="flowlauncher_plugin_program_edit_program_source_title">Program Source</system:String>

Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,13 @@ private async void btnProgramSourceStatus_OnClick(object sender, RoutedEventArgs
303303
return;
304304
}
305305

306+
if (IsAllItemsUserAdded(selectedItems))
307+
{
308+
var msg1 = context.API.GetTranslation("flowlauncher_plugin_program_delete_program_source_not_user_added");
309+
context.API.ShowMsgBox(msg1);
310+
return;
311+
}
312+
306313
if (HasMoreOrEqualEnabledItems(selectedItems))
307314
{
308315
await ProgramSettingDisplay.SetProgramSourcesStatusAsync(selectedItems, false);

0 commit comments

Comments
 (0)