mirror of
https://github.com/osukey/osukey.git
synced 2025-06-29 23:28:00 +09: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;
|
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…
x
Reference in New Issue
Block a user