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

Move disabled check to apply to all calls to updateGlow()

This commit is contained in:
Dean Herbert 2022-11-07 02:19:13 +09:00
parent 700f8b0469
commit e7b543de2f

View File

@ -162,8 +162,7 @@ namespace osu.Game.Graphics.UserInterface
protected override bool OnHover(HoverEvent e)
{
if (!Current.Disabled)
updateGlow();
updateGlow();
return base.OnHover(e);
}
@ -184,7 +183,7 @@ namespace osu.Game.Graphics.UserInterface
private void updateGlow()
{
Nub.Glowing = IsHovered || IsDragged;
Nub.Glowing = !Current.Disabled && (IsHovered || IsDragged);
}
protected override void OnUserChange(T value)