Skip to content

Commit

Permalink
Reverse ordering of bounties so last entry comes first
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryNorfolk committed Jan 15, 2025
1 parent d872710 commit cb0eb5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Content.Client/Cargo/UI/CargoBountyMenu.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ public void UpdateEntries(List<CargoBountyData> bounties, List<CargoBountyHistor
else
{
NoHistoryLabel.Visible = false;
foreach (var h in history)

// Show the history in reverse, so last entry is first in the list
for (var i = history.Count - 1; i >= 0; i--)
{
BountyHistoryContainer.AddChild(new BountyHistoryEntry(h));
BountyHistoryContainer.AddChild(new BountyHistoryEntry(history[i]));
}
}
}
Expand Down

0 comments on commit cb0eb5c

Please sign in to comment.