Select only the new branch when created, fixes #2405

This commit is contained in:
RetroEdit 2020-09-17 22:28:04 +00:00
parent b6a3c20b49
commit 35754469aa
No known key found for this signature in database
GPG Key ID: CE9E2A36E1EFA76F
1 changed files with 4 additions and 2 deletions

View File

@ -146,6 +146,9 @@ namespace BizHawk.Client.EmuHawk
}
}
/// <summary>
/// Add a new branch.
/// </summary>
public void Branch()
{
var branch = CreateBranch();
@ -155,6 +158,7 @@ namespace BizHawk.Client.EmuHawk
Branches.Current = Branches.Count - 1;
Movie.TasSession.UpdateValues(Tastudio.Emulator.Frame, Branches.Current);
BranchView.ScrollToIndex(Branches.Current);
BranchView.DeselectAll();
Select(Branches.Current, true);
BranchView.Refresh();
Tastudio.RefreshDialog();
@ -402,8 +406,6 @@ namespace BizHawk.Client.EmuHawk
public void AddBranchExternal()
{
AddBranchToolStripMenuItem_Click(null, null);
Select(Branches.Current, true);
BranchView.Refresh();
}
public void LoadBranchExternal(int slot = -1)