tastudio: branches.

- update inputroll after branch operations
- properly remove BranchStates units
- don't load current branch
This commit is contained in:
feos 2015-09-14 20:45:27 +03:00
parent 9df7a4d31b
commit b31c43321b
2 changed files with 8 additions and 2 deletions
BizHawk.Client.Common/movie/tasproj
BizHawk.Client.EmuHawk/tools/TAStudio

View File

@ -795,7 +795,7 @@ namespace BizHawk.Client.Common
stateList.Remove(identifier);
if (stateList.Count == 0)
BranchStates[kvp.Key] = null;
BranchStates.Remove(kvp.Key);
}
//branches--;
//if (currentBranch <= _movie.BranchCount)

View File

@ -128,9 +128,13 @@ namespace BizHawk.Client.EmuHawk
private void LoadSelectedBranch()
{
int index = BranchView.SelectedRows.First();
if (CurrentBranch == index)
return;
if (SelectedBranch != null)
{
CurrentBranch = BranchView.SelectedRows.First();
CurrentBranch = index;
BranchView.Refresh();
LoadBranch(SelectedBranch);
}
@ -167,6 +171,7 @@ namespace BizHawk.Client.EmuHawk
}
BranchView.Refresh();
Tastudio.RefreshDialog();
}
}
@ -290,6 +295,7 @@ namespace BizHawk.Client.EmuHawk
{
Movie.UpdateBranch(branch, CreateBranch());
BranchView.Refresh();
Tastudio.RefreshDialog();
}
private void BranchView_MouseDown(object sender, MouseEventArgs e)