don't control stop movie in TAStudio movie load
was removed in b6a0688be0
, and while not strictly required this will leak TasMovies otherwise.
This commit is contained in:
parent
8956657a34
commit
74dcd81b85
|
@ -63,7 +63,7 @@
|
||||||
{
|
{
|
||||||
Activate();
|
Activate();
|
||||||
_suppressAskSave = suppressSave;
|
_suppressAskSave = suppressSave;
|
||||||
NewTasMenuItem_Click(null, null);
|
StartNewTasMovie();
|
||||||
_suppressAskSave = false;
|
_suppressAskSave = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -106,9 +106,7 @@
|
||||||
public bool RestartMovie()
|
public bool RestartMovie()
|
||||||
{
|
{
|
||||||
if (!AskSaveChanges()) return false;
|
if (!AskSaveChanges()) return false;
|
||||||
WantsToControlStopMovie = false;
|
|
||||||
var success = StartNewMovieWrapper(CurrentTasMovie, isNew: false);
|
var success = StartNewMovieWrapper(CurrentTasMovie, isNew: false);
|
||||||
WantsToControlStopMovie = true;
|
|
||||||
RefreshDialog();
|
RefreshDialog();
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
|
@ -610,7 +610,9 @@ namespace BizHawk.Client.EmuHawk
|
||||||
SetTasMovieCallbacks(movie);
|
SetTasMovieCallbacks(movie);
|
||||||
|
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
|
WantsToControlStopMovie = false;
|
||||||
bool result = MainForm.StartNewMovie(movie, isNew);
|
bool result = MainForm.StartNewMovie(movie, isNew);
|
||||||
|
WantsToControlStopMovie = true;
|
||||||
ResumeLayout();
|
ResumeLayout();
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue