Skip to content

Commit a6a544a

Browse files
committed
Translations
1 parent 287f3f8 commit a6a544a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

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

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

66
<!-- Dialogues -->
77
<system:String x:Key="plugin_explorer_make_selection_warning">Please make a selection first</system:String>
8-
<system:String x:Key="plugin_explorer_quick_access_link_no_folder_selected">Please select path folder</system:String>
8+
<system:String x:Key="plugin_explorer_quick_access_link_no_folder_selected">Please select a folder path.</system:String>
9+
<system:String x:Key="plugin_explorer_quick_access_link_select_different_folder">Please choose a different name or folder path.</system:String>
910
<system:String x:Key="plugin_explorer_select_folder_link_warning">Please select a folder link</system:String>
1011
<system:String x:Key="plugin_explorer_delete_folder_link">Are you sure you want to delete {0}?</system:String>
1112
<system:String x:Key="plugin_explorer_deletefileconfirm">Are you sure you want to permanently delete this file?</system:String>

Plugins/Flow.Launcher.Plugin.Explorer/Views/QuickAccessLinkSettings.xaml.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ private void OnDoneButtonClick(object sender, RoutedEventArgs e)
8888
Main.Context.API.ShowMsgBox(warning);
8989
return;
9090
}
91+
92+
if (Settings.QuickAccessLinks.Any(x => x.Path == SelectedPath && x.Name == SelectedName))
93+
{
94+
var warning = Main.Context.API.GetTranslation("plugin_explorer_quick_access_link_select_different_folder");
95+
Main.Context.API.ShowMsgBox(warning);
96+
return;
97+
}
9198
if (IsEdit)
9299
{
93100
EditAccessLink();

0 commit comments

Comments
 (0)