set current branch properly in TAStudio movie load

apparently, GoToFrame might frameadvance, which in turn calls UpdateAfter(), which in turns updates the current selected branch in the TasSession with the value of the current movie.
So, we need to set the current movie's current branch from the session's value before it gets deleted.

- closes #3968
This commit is contained in:
Morilli 2024-07-17 22:33:52 +02:00
parent e214b7dc33
commit f59cfb1710
2 changed files with 1 additions and 1 deletions

View File

@ -134,6 +134,7 @@ namespace BizHawk.Client.Common
try
{
TasSession = JsonConvert.DeserializeObject<TasSession>(json);
Branches.Current = TasSession.CurrentBranch;
}
catch
{

View File

@ -558,7 +558,6 @@ namespace BizHawk.Client.EmuHawk
SetUpToolStripColumns();
CurrentTasMovie.PropertyChanged += TasMovie_OnPropertyChanged;
CurrentTasMovie.Branches.Current = CurrentTasMovie.TasSession.CurrentBranch;
BookMarkControl.UpdateTextColumnWidth();
MarkerControl.UpdateTextColumnWidth();
// clear all selections