Always unbind bindings

This commit is contained in:
smoogipoo 2020-04-14 15:21:56 +09:00
parent 3183827329
commit b8b334ca27

View File

@ -92,14 +92,13 @@ namespace osu.Game.Screens.Play.HUD
if (configEnabled == null || healthProcessor == null)
return;
enabled.UnbindBindings();
// Don't display ever if the ruleset is not using a draining health display.
if (healthProcessor is DrainingHealthProcessor)
enabled.BindTo(configEnabled);
else
{
enabled.UnbindBindings();
enabled.Value = false;
}
}
protected override void Update()