1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:03:13 +08:00

Fix setting count for recent scores is overcomplicated

This commit is contained in:
Andrei Zavatski 2020-09-08 15:31:00 +03:00
parent 1bc41bcfd7
commit 95eeebd93f

View File

@ -49,12 +49,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
base.OnItemsReceived(items);
if (type == ScoreType.Recent)
{
var count = items.Count;
Header.Current.Value = count == 0 ? 0 : -1;
Header.Current.TriggerChange();
}
Header.Current.Value = items.Count;
}
protected override APIRequest<List<APILegacyScoreInfo>> CreateRequest() =>