Make the confirm prompt use the application title from the configuration

This commit is contained in:
Michael Becker 2014-07-22 15:53:59 -04:00
parent a5e13f505c
commit 33d7c99293

View File

@ -401,7 +401,7 @@ namespace UniversalEditor.UserInterface.WindowsForms
{
if (ConfigurationManager.GetValue<bool>(new string[] { "Application", "ConfirmExit" }, false))
{
if (MessageBox.Show("Are you sure you wish to quit " + LocalConfiguration.ApplicationName + "?", "Quit Application", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.No) return false;
if (MessageBox.Show("Are you sure you wish to quit " + Engine.CurrentEngine.DefaultLanguage.GetStringTableEntry("ApplicationTitle") + "?", "Quit Application", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.No) return false;
}
return base.BeforeStopApplication();
}