mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00:00
parent
f8346eb7e1
commit
1433ffd823
1 changed files with 5 additions and 5 deletions
|
@ -294,11 +294,11 @@ namespace PKHeX.WinForms
|
|||
}
|
||||
private void mainMenuExit(object sender, EventArgs e)
|
||||
{
|
||||
if (ModifierKeys != Keys.Control)
|
||||
Close(); // not triggered via hotkey
|
||||
|
||||
if (DialogResult.Yes == WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Quit PKHeX?"))
|
||||
Close();
|
||||
if (ModifierKeys == Keys.Control) // triggered via hotkey
|
||||
if (DialogResult.Yes != WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Quit PKHeX?"))
|
||||
return;
|
||||
|
||||
Close();
|
||||
}
|
||||
private void mainMenuAbout(object sender, EventArgs e) => new About().ShowDialog();
|
||||
|
||||
|
|
Loading…
Reference in a new issue