Triggering fix

This commit is contained in:
Andrey Zavadskiy 2017-03-01 13:36:53 +03:00
parent cc92459ee1
commit a6504e8f22
1 changed files with 3 additions and 6 deletions

View File

@ -67,19 +67,16 @@ public ScoreOverlay()
private void load(OsuConfigManager config) private void load(OsuConfigManager config)
{ {
showKeyCounter = config.GetBindable<bool>(OsuConfig.KeyOverlay); showKeyCounter = config.GetBindable<bool>(OsuConfig.KeyOverlay);
if (showKeyCounter)
KeyCounter.Show();
else KeyCounter.Hide();
showKeyCounter.ValueChanged += visibilityChanged; showKeyCounter.ValueChanged += visibilityChanged;
showKeyCounter.TriggerChange();
} }
private void visibilityChanged(object sender, EventArgs e) private void visibilityChanged(object sender, EventArgs e)
{ {
if (showKeyCounter) if (showKeyCounter)
KeyCounter.Show(); KeyCounter.Show();
else KeyCounter.Hide(); else
KeyCounter.Hide();
} }
public void BindProcessor(ScoreProcessor processor) public void BindProcessor(ScoreProcessor processor)