cleanup TasView_CellDropped

This commit is contained in:
Morilli 2025-04-12 22:53:21 +02:00
parent 1983c9ce08
commit 52f08a9a6c
1 changed files with 1 additions and 5 deletions

View File

@ -1167,11 +1167,7 @@ namespace BizHawk.Client.EmuHawk
{
if (e.NewCell?.RowIndex != null && !CurrentTasMovie.Markers.IsMarker(e.NewCell.RowIndex.Value))
{
var currentMarker = CurrentTasMovie.Markers.Single(m => m.Frame == e.OldCell.RowIndex.Value);
int newFrame = e.NewCell.RowIndex.Value;
var newMarker = new TasMovieMarker(newFrame, currentMarker.Message);
CurrentTasMovie.Markers.Remove(currentMarker);
CurrentTasMovie.Markers.Add(newMarker);
CurrentTasMovie.Markers.Move(e.OldCell.RowIndex.Value, e.NewCell.RowIndex.Value);
RefreshDialog();
}
}