Remove null check for selected shortcut

This commit is contained in:
Vic 2022-11-19 18:03:25 +08:00
parent e2fcd91202
commit dbfb039317

View file

@ -783,7 +783,7 @@ namespace Flow.Launcher.ViewModel
string deleteWarning = string.Format(
InternationalizationManager.Instance.GetTranslation("deleteCustomShortcutWarning"),
item?.Key, item?.Value);
item.Key, item.Value);
if (MessageBox.Show(deleteWarning, InternationalizationManager.Instance.GetTranslation("delete"),
MessageBoxButton.YesNo) == MessageBoxResult.Yes)
{