A little more elegant (and secure) solution for the bug fixed in r8728
This commit is contained in:
parent
dcda3ff393
commit
7f6e651c08
|
@ -77,9 +77,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//CurrentTasMovie.Save();
|
_saveBackgroundWorker.RunWorkerAsync();
|
||||||
//MessageStatusLabel.Text = Path.GetFileName(CurrentTasMovie.Filename) + " saved.";
|
|
||||||
_saveBackgroundWorker.RunWorkerAsync();
|
|
||||||
Settings.RecentTas.Add(CurrentTasMovie.Filename);
|
Settings.RecentTas.Add(CurrentTasMovie.Filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -97,10 +95,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
CurrentTasMovie.Filename = file.FullName;
|
CurrentTasMovie.Filename = file.FullName;
|
||||||
|
|
||||||
//CurrentTasMovie.Save();
|
|
||||||
_saveBackgroundWorker.RunWorkerAsync();
|
_saveBackgroundWorker.RunWorkerAsync();
|
||||||
Settings.RecentTas.Add(CurrentTasMovie.Filename);
|
Settings.RecentTas.Add(CurrentTasMovie.Filename);
|
||||||
//MessageStatusLabel.Text = Path.GetFileName(CurrentTasMovie.Filename) + " saved.";
|
|
||||||
SetTextProperty();
|
SetTextProperty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -555,12 +555,13 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void Tastudio_Load(object sender, EventArgs e)
|
private void Tastudio_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
InitializeOnLoad();
|
if(!InitializeOnLoad())
|
||||||
if(CurrentTasMovie == null) // dialog was aborted
|
|
||||||
{
|
{
|
||||||
Close();
|
Close();
|
||||||
|
this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetColumnsFromCurrentStickies();
|
SetColumnsFromCurrentStickies();
|
||||||
|
|
||||||
if (VersionInfo.DeveloperBuild)
|
if (VersionInfo.DeveloperBuild)
|
||||||
|
@ -579,7 +580,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
RefreshDialog();
|
RefreshDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitializeOnLoad()
|
private bool InitializeOnLoad()
|
||||||
{
|
{
|
||||||
// Start Scenario 1: A regular movie is active
|
// Start Scenario 1: A regular movie is active
|
||||||
if (Global.MovieSession.Movie.IsActive && !(Global.MovieSession.Movie is TasMovie))
|
if (Global.MovieSession.Movie.IsActive && !(Global.MovieSession.Movie is TasMovie))
|
||||||
|
@ -592,7 +593,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -625,6 +626,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
SetUpColumns();
|
SetUpColumns();
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Tastudio_Closing(object sender, FormClosingEventArgs e)
|
private void Tastudio_Closing(object sender, FormClosingEventArgs e)
|
||||||
|
|
Loading…
Reference in New Issue