diff options
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs index 66d8222ea1..f3fee13cbf 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs @@ -279,7 +279,12 @@ namespace MonoDevelop.Ide.Commands try { string title = GettextCatalog.GetString ("Clear recent files"); string question = GettextCatalog.GetString ("Are you sure you want to clear recent files list?"); - if (MessageService.Confirm (title, question, AlertButton.Clear)) { + if (MessageService.GenericAlert ( + MonoDevelop.Ide.Gui.Stock.Question, + title, + question, + AlertButton.No, + AlertButton.Yes) == AlertButton.Yes) { DesktopService.RecentFiles.ClearFiles (); } } catch (Exception ex) { @@ -347,12 +352,17 @@ namespace MonoDevelop.Ide.Commands // MonoDevelop.Ide.Commands.FileCommands.ClearRecentProjects internal class ClearRecentProjectsHandler : CommandHandler { - protected override void Run() + protected override void Run () { try { string title = GettextCatalog.GetString ("Clear recent projects"); string question = GettextCatalog.GetString ("Are you sure you want to clear recent projects list?"); - if (MessageService.Confirm (title, question, AlertButton.Clear)) { + if (MessageService.GenericAlert ( + MonoDevelop.Ide.Gui.Stock.Question, + title, + question, + AlertButton.No, + AlertButton.Yes) == AlertButton.Yes) { DesktopService.RecentFiles.ClearProjects (); } } catch (Exception ex) { |