Skip to content

Commit 0c75dfe

Browse files
committed
Update delete message
1 parent 8ebdff0 commit 0c75dfe

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Flow.Launcher/Languages/en.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
<system:String x:Key="add">Add</system:String>
123123
<system:String x:Key="pleaseSelectAnItem">Please select an item</system:String>
124124
<system:String x:Key="deleteCustomHotkeyWarning">Are you sure you want to delete {0} plugin hotkey?</system:String>
125+
<system:String x:Key="deleteCustomShortcutWarning">Are you sure you want to delete shortcut: {0} with expansion {1}?</system:String>
125126
<system:String x:Key="queryWindowShadowEffect">Query window shadow effect</system:String>
126127
<system:String x:Key="shadowEffectCPUUsage">Shadow effect has a substantial usage of GPU. Not recommended if your computer performance is limited.</system:String>
127128
<system:String x:Key="windowWidthSize">Window Width Size</system:String>

Flow.Launcher/SettingWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ private void OnDeleteCustomShortCutClick(object sender, RoutedEventArgs e)
380380
}
381381

382382
string deleteWarning =
383-
string.Format(InternationalizationManager.Instance.GetTranslation("deleteCustomHotkeyWarning"),
384-
item.Value.Key);
383+
string.Format(InternationalizationManager.Instance.GetTranslation("deleteCustomShortcutWarning"),
384+
item?.Key, item?.Value);
385385
if (
386386
MessageBox.Show(deleteWarning, InternationalizationManager.Instance.GetTranslation("delete"),
387387
MessageBoxButton.YesNo) == MessageBoxResult.Yes)

0 commit comments

Comments
 (0)