Skip to content

Commit

Permalink
fix: last position tracker not always tracking
Browse files Browse the repository at this point in the history
fix a case where last position is not saved
  • Loading branch information
huynhsontung committed Aug 25, 2024
1 parent cca12c8 commit 72a3edb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Screenbox.Core/Helpers/LastPositionTracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ public void UpdateLastPosition(string location, TimeSpan position)
if (index >= 0)
{
_lastPositions.RemoveAt(index);
_lastPositions.Insert(0, item);
}

_lastPositions.Insert(0, item);
}
}
else
Expand Down

0 comments on commit 72a3edb

Please sign in to comment.