Tastudio Branches - when removing the current branch, clear the CurrentBranch flag
This commit is contained in:
parent
819a13a6f0
commit
1070fceaa5
|
@ -160,6 +160,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
if (SelectedBranch != null)
|
||||
{
|
||||
if (Branches.IndexOf(SelectedBranch) == CurrentBranch)
|
||||
{
|
||||
CurrentBranch = -1;
|
||||
}
|
||||
|
||||
Branches.Remove(SelectedBranch);
|
||||
BranchView.RowCount = Branches.Count;
|
||||
BranchView.Refresh();
|
||||
|
|
Loading…
Reference in New Issue