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();
_suppressAskSave = suppressSave;
NewTasMenuItem_Click(null, null);
StartNewTasMovie();
_suppressAskSave = false;
}
}
@ -106,9 +106,7 @@
public bool RestartMovie()
{
if (!AskSaveChanges()) return false;
WantsToControlStopMovie = false;
var success = StartNewMovieWrapper(CurrentTasMovie, isNew: false);
WantsToControlStopMovie = true;
RefreshDialog();
return success;
}

View File

@ -610,7 +610,9 @@ namespace BizHawk.Client.EmuHawk
SetTasMovieCallbacks(movie);
SuspendLayout();
WantsToControlStopMovie = false;
bool result = MainForm.StartNewMovie(movie, isNew);
WantsToControlStopMovie = true;
ResumeLayout();
if (result)
{