1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Move hosted by text into nullcheck

This commit is contained in:
smoogipoo 2021-09-30 12:04:30 +09:00
parent 202a602d2f
commit 816018edb7

View File

@ -261,9 +261,11 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
hostAvatar.User = host.NewValue;
hostText.Clear();
hostText.AddText("hosted by ");
if (host.NewValue != null)
{
hostText.AddText("hosted by ");
hostText.AddUserLink(host.NewValue);
}
}
private class CircularAvatar : CompositeDrawable