TAStudio - fix the Save Changes dialog showing twice if the user picks no

This commit is contained in:
adelikat 2014-07-27 15:11:59 +00:00
parent a26c4b0b7a
commit c9b7686b44
1 changed files with 8 additions and 1 deletions

View File

@ -48,7 +48,13 @@ namespace BizHawk.Client.EmuHawk
if (_tas != null && _tas.Changes)
{
GlobalWin.Sound.StopSound();
var result = MessageBox.Show("Save Changes?", "Tastudio", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button3);
var result = MessageBox.Show(
"Save Changes?",
"Tastudio",
MessageBoxButtons.YesNoCancel,
MessageBoxIcon.Question,
MessageBoxDefaultButton.Button3);
GlobalWin.Sound.StartSound();
if (result == DialogResult.Yes)
{
@ -56,6 +62,7 @@ namespace BizHawk.Client.EmuHawk
}
else if (result == DialogResult.No)
{
_tas.ClearChanges();
return true;
}
else if (result == DialogResult.Cancel)