1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:22:55 +08:00

Don't use child

This commit is contained in:
Dean Herbert 2017-08-29 18:31:51 +09:00
parent 39b5b04700
commit 24a2dc3d1e

View File

@ -135,7 +135,7 @@ namespace osu.Game.Graphics.UserInterface
{ {
base.UpdateForegroundColour(); base.UpdateForegroundColour();
var content = Foreground.Child as Content; var content = Foreground.Children.FirstOrDefault() as Content;
if (content != null) content.Chevron.Alpha = IsHovered ? 1 : 0; if (content != null) content.Chevron.Alpha = IsHovered ? 1 : 0;
} }