tasmovie - only save when stopping if there are changes

This commit is contained in:
adelikat 2014-09-27 23:56:23 +00:00
parent 734b8338bc
commit e00801d6f3
2 changed files with 11 additions and 1 deletions

View File

@ -55,7 +55,7 @@ namespace BizHawk.Client.Common
Save();
}
public bool Stop(bool saveChanges = true)
public virtual bool Stop(bool saveChanges = true)
{
bool saved = false;
if (saveChanges)

View File

@ -42,6 +42,16 @@ namespace BizHawk.Client.Common
get { return Extension; }
}
public override bool Stop(bool saveChanges = true)
{
if (Changes)
{
return base.Stop(saveChanges);
}
return false;
}
#region Events and Handlers
public event PropertyChangedEventHandler PropertyChanged;