From 35754469aa8f8866858ff8b5f4a4b650e591e7c5 Mon Sep 17 00:00:00 2001 From: RetroEdit <30182911+RetroEdit@users.noreply.github.com> Date: Thu, 17 Sep 2020 22:28:04 +0000 Subject: [PATCH] Select only the new branch when created, fixes #2405 --- .../tools/TAStudio/BookmarksBranchesBox.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs index 36d34aa519..3d62a7dcfc 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs @@ -146,6 +146,9 @@ namespace BizHawk.Client.EmuHawk } } + /// + /// Add a new branch. + /// 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)