Completely clear leaderboard on force update

This commit is contained in:
hodasemi 2023-01-27 17:17:25 +01:00
parent e4bb7fc2b6
commit 17cd3b2df8

View file

@ -215,9 +215,8 @@ impl LeaderBoard {
.child_at(0, self.leaderboard_entries.len() - 1)?
.is_none()
{
for (i, entry) in self.leaderboard_entries.iter().enumerate() {
for i in 0..self.leaderboard_grid.dimensions().1 {
self.leaderboard_grid.detach(0, i)?;
entry.snippet().set_visibility(false)?;
}
true