tastudio: make current branch track its new pos upon reordering
This commit is contained in:
parent
cea1a04425
commit
08e33f7ec1
|
@ -627,7 +627,11 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
if (e.NewCell != null && e.NewCell.IsDataCell && e.OldCell.RowIndex.Value < Movie.BranchCount)
|
if (e.NewCell != null && e.NewCell.IsDataCell && e.OldCell.RowIndex.Value < Movie.BranchCount)
|
||||||
{
|
{
|
||||||
|
int currenthash = Movie.BranchHashByIndex(Movie.CurrentBranch);
|
||||||
Movie.SwapBranches(e.OldCell.RowIndex.Value, e.NewCell.RowIndex.Value);
|
Movie.SwapBranches(e.OldCell.RowIndex.Value, e.NewCell.RowIndex.Value);
|
||||||
|
int newindex = Movie.BranchIndexByHash(currenthash);
|
||||||
|
Movie.CurrentBranch = newindex;
|
||||||
|
BranchView.SelectRow(newindex, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue