From 0c75dfe46fc9a0116f6c69f9aec0397298df0a96 Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Sat, 4 Jun 2022 00:45:51 -0500 Subject: [PATCH] Update delete message --- Flow.Launcher/Languages/en.xaml | 1 + Flow.Launcher/SettingWindow.xaml.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index 779d457a7..69c0a73ae 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -122,6 +122,7 @@ Add Please select an item Are you sure you want to delete {0} plugin hotkey? + Are you sure you want to delete shortcut: {0} with expansion {1}? Query window shadow effect Shadow effect has a substantial usage of GPU. Not recommended if your computer performance is limited. Window Width Size diff --git a/Flow.Launcher/SettingWindow.xaml.cs b/Flow.Launcher/SettingWindow.xaml.cs index ef35248cc..e21af2bea 100644 --- a/Flow.Launcher/SettingWindow.xaml.cs +++ b/Flow.Launcher/SettingWindow.xaml.cs @@ -380,8 +380,8 @@ namespace Flow.Launcher } string deleteWarning = - string.Format(InternationalizationManager.Instance.GetTranslation("deleteCustomHotkeyWarning"), - item.Value.Key); + string.Format(InternationalizationManager.Instance.GetTranslation("deleteCustomShortcutWarning"), + item?.Key, item?.Value); if ( MessageBox.Show(deleteWarning, InternationalizationManager.Instance.GetTranslation("delete"), MessageBoxButton.YesNo) == MessageBoxResult.Yes)