mirror of
https://github.com/ppy/osu
synced 2024-12-16 03:45:46 +00:00
Merge pull request #2017 from ppy/osu/master
Stopping non-url text from being hyperlinks
This commit is contained in:
commit
3db75cd2fc
@ -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