Cleanup top header container + user handling

This commit is contained in:
smoogipoo
2019-04-26 12:32:15 +09:00
parent 838325fed4
commit d5b91c6455
4 changed files with 25 additions and 24 deletions

View File

@ -185,10 +185,10 @@ namespace osu.Game.Overlays.Profile.Header
private void updateDisplay(User user)
{
followerText.Text = user.FollowerCount?.Length > 0 ? user.FollowerCount[0].ToString("#,##0") : "0";
followerText.Text = user?.FollowerCount?.Length > 0 ? user.FollowerCount[0].ToString("#,##0") : "0";
hiddenDetailGlobal.Content = user.Statistics?.Ranks.Global?.ToString("#,##0") ?? "-";
hiddenDetailCountry.Content = user.Statistics?.Ranks.Country?.ToString("#,##0") ?? "-";
hiddenDetailGlobal.Content = user?.Statistics?.Ranks.Global?.ToString("#,##0") ?? "-";
hiddenDetailCountry.Content = user?.Statistics?.Ranks.Country?.ToString("#,##0") ?? "-";
}
private class ExpandButton : ProfileHeaderButton