mirror of https://github.com/ppy/osu
Triggering fix
This commit is contained in:
parent
cc92459ee1
commit
a6504e8f22
|
@ -67,19 +67,16 @@ public ScoreOverlay()
|
|||
private void load(OsuConfigManager config)
|
||||
{
|
||||
showKeyCounter = config.GetBindable<bool>(OsuConfig.KeyOverlay);
|
||||
|
||||
if (showKeyCounter)
|
||||
KeyCounter.Show();
|
||||
else KeyCounter.Hide();
|
||||
|
||||
showKeyCounter.ValueChanged += visibilityChanged;
|
||||
showKeyCounter.TriggerChange();
|
||||
}
|
||||
|
||||
private void visibilityChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (showKeyCounter)
|
||||
KeyCounter.Show();
|
||||
else KeyCounter.Hide();
|
||||
else
|
||||
KeyCounter.Hide();
|
||||
}
|
||||
|
||||
public void BindProcessor(ScoreProcessor processor)
|
||||
|
|
Loading…
Reference in New Issue