mirror of https://github.com/ppy/osu
Simply condition
Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
parent
e0383f6100
commit
4d6b52a0d6
|
@ -350,7 +350,8 @@ private class RankLabel : Container, IHasTooltip
|
|||
{
|
||||
public RankLabel(int? rank)
|
||||
{
|
||||
TooltipText = rank == null || rank < 1000 ? null : $"#{rank:N0}";
|
||||
if (rank >= 1000)
|
||||
TooltipText = $"#{rank:N0}";
|
||||
|
||||
Child = new OsuSpriteText
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue