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:
parent
700f8b0469
commit
e7b543de2f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user