1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 07:09:53 +08:00

Merge pull request #2017 from ppy/osu/master

Stopping non-url text from being hyperlinks
This commit is contained in:
Dean Herbert
2018-02-04 11:50:25 +09:00
committed by GitHub
Unverified
+7 -1
View File
@@ -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();
}