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:
Morilli 2024-08-28 00:52:07 +02:00
parent 8956657a34
commit 74dcd81b85
2 changed files with 3 additions and 3 deletions

View File

@ -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;
} }

View File

@ -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)
{ {