Remove double close event

Closes #1203
This commit is contained in:
Kurt 2017-06-07 22:19:45 -07:00
parent f8346eb7e1
commit 1433ffd823

View file

@ -294,10 +294,10 @@ namespace PKHeX.WinForms
}
private void mainMenuExit(object sender, EventArgs e)
{
if (ModifierKeys != Keys.Control)
Close(); // not triggered via hotkey
if (ModifierKeys == Keys.Control) // triggered via hotkey
if (DialogResult.Yes != WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Quit PKHeX?"))
return;
if (DialogResult.Yes == WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Quit PKHeX?"))
Close();
}
private void mainMenuAbout(object sender, EventArgs e) => new About().ShowDialog();