1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-16 14:23:22 +08:00

Remove unnecessary text comparison

This commit is contained in:
Joseph Madamba
2023-07-29 11:02:04 -07:00
Unverified
parent 740898dffb
commit 6ebfafa9c3
+1 -11
View File
@@ -47,17 +47,7 @@ namespace osu.Game.Screens.Play.Break
}
};
Current.ValueChanged += currentValueChanged;
}
private void currentValueChanged(ValueChangedEvent<T> e)
{
LocalisableString newText = Format(e.NewValue);
if (valueText.Text == newText)
return;
valueText.Text = newText;
Current.ValueChanged += text => valueText.Text = Format(text.NewValue);
}
protected virtual LocalisableString Format(T count)