mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 19:22:54 +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:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user