tastudio:

- scroll to new marker and new branch
- don't kill selection per marker removal
This commit is contained in:
vadosnaprimer 2018-01-10 19:09:37 +03:00
parent c17f793733
commit 5bff769fe9
2 changed files with 2 additions and 1 deletions

View File

@ -135,6 +135,7 @@ namespace BizHawk.Client.EmuHawk
Movie.AddBranch(branch); Movie.AddBranch(branch);
BranchView.RowCount = Movie.BranchCount; BranchView.RowCount = Movie.BranchCount;
Movie.CurrentBranch = Movie.BranchCount - 1; Movie.CurrentBranch = Movie.BranchCount - 1;
BranchView.ScrollToIndex(Movie.CurrentBranch);
BranchView.Refresh(); BranchView.Refresh();
Tastudio.RefreshDialog(); Tastudio.RefreshDialog();
} }

View File

@ -150,7 +150,6 @@ namespace BizHawk.Client.EmuHawk
if (MarkerView.AnyRowsSelected) if (MarkerView.AnyRowsSelected)
{ {
SelectedMarkers.ForEach(i => Markers.Remove(i)); SelectedMarkers.ForEach(i => Markers.Remove(i));
MarkerInputRoll.DeselectAll();
Tastudio.RefreshDialog(); Tastudio.RefreshDialog();
MarkerView_SelectedIndexChanged(null, null); MarkerView_SelectedIndexChanged(null, null);
} }
@ -190,6 +189,7 @@ namespace BizHawk.Client.EmuHawk
UpdateValues(); UpdateValues();
} }
MarkerView.ScrollToIndex(Markers.Count() - 1);
Tastudio.RefreshDialog(); Tastudio.RefreshDialog();
} }