Fixed a bug where the hover wouldn't work correctly due to OsuLinkSpriteText assigning Action to a private property.

This commit is contained in:
FreezyLemon 2017-12-07 13:57:29 +01:00
parent 5ded6e877c
commit ca40db2b97

View File

@ -51,7 +51,12 @@ namespace osu.Game.Graphics.Sprites
if (!string.IsNullOrEmpty(value)) if (!string.IsNullOrEmpty(value))
{ {
url = value; url = value;
content.Action = onClickAction; content.Action = onClickAction;
// For inheriting classes
if (Content is OsuHoverContainer hover)
hover.Action = onClickAction;
} }
} }
} }