mirror of
https://github.com/ppy/osu
synced 2024-12-13 10:28:17 +00:00
Stops non-url text from being hyperlinks
Fixed crash when you attempted to click one
This commit is contained in:
parent
a9148d81d2
commit
c4f3223e34
@ -433,7 +433,13 @@ namespace osu.Game.Overlays.Profile
|
||||
if (string.IsNullOrEmpty(str)) return;
|
||||
|
||||
infoTextRight.AddIcon(icon);
|
||||
infoTextRight.AddLink(" " + str, url);
|
||||
if (url != null)
|
||||
{
|
||||
infoTextRight.AddLink(" " + str, url);
|
||||
} else
|
||||
{
|
||||
infoTextRight.AddText(" " + str);
|
||||
}
|
||||
infoTextRight.NewLine();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user