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
commit 3db75cd2fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();
}