From 19354c34163ab873099daf445db4d42ddfdc228f Mon Sep 17 00:00:00 2001 From: Brian Lima Date: Sun, 7 Apr 2024 20:56:28 -0300 Subject: [PATCH] Wrap the shortcut clear button with a warning --- UWPHook/SettingsWindow.xaml.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/UWPHook/SettingsWindow.xaml.cs b/UWPHook/SettingsWindow.xaml.cs index cc5a897..8c47c5c 100644 --- a/UWPHook/SettingsWindow.xaml.cs +++ b/UWPHook/SettingsWindow.xaml.cs @@ -86,7 +86,11 @@ namespace UWPHook private void clearAll_button_Click(object sender, RoutedEventArgs e) { - GamesWindow.ClearAllShortcuts(); + MessageBoxResult result = MessageBox.Show("This action will remove ALL shortcuts from non-Steam games." + Environment.NewLine + " Are you sure you want to continue?", "Warning", MessageBoxButton.YesNo, MessageBoxImage.Warning); + if (result == MessageBoxResult.Yes) + { + GamesWindow.ClearAllShortcuts(); + } } private void key_Button_Click(object sender, RoutedEventArgs e)