mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 13:13:22 +08: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;
|
if (string.IsNullOrEmpty(str)) return;
|
||||||
|
|
||||||
infoTextRight.AddIcon(icon);
|
infoTextRight.AddIcon(icon);
|
||||||
infoTextRight.AddLink(" " + str, url);
|
if (url != null)
|
||||||
|
{
|
||||||
|
infoTextRight.AddLink(" " + str, url);
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
infoTextRight.AddText(" " + str);
|
||||||
|
}
|
||||||
infoTextRight.NewLine();
|
infoTextRight.NewLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user