1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 01:40:03 +08:00

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
Unverified
parent 5ded6e877c
commit ca40db2b97
@@ -51,7 +51,12 @@ namespace osu.Game.Graphics.Sprites
if (!string.IsNullOrEmpty(value))
{
url = value;
content.Action = onClickAction;
// For inheriting classes
if (Content is OsuHoverContainer hover)
hover.Action = onClickAction;
}
}
}