TAStudio - fix the Save Changes dialog showing twice if the user picks no
This commit is contained in:
parent
a26c4b0b7a
commit
c9b7686b44
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue