mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Reset text only if it has been changed
This commit is contained in:
@ -54,7 +54,12 @@ namespace osu.Game.Screens.Play.BreaksOverlay
|
|||||||
|
|
||||||
private void currentValueChanged(T newValue)
|
private void currentValueChanged(T newValue)
|
||||||
{
|
{
|
||||||
valueText.Text = prefix + Format(newValue);
|
var newText = prefix + Format(newValue);
|
||||||
|
|
||||||
|
if (valueText.Text == newText)
|
||||||
|
return;
|
||||||
|
|
||||||
|
valueText.Text = newText;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual string Format(T count) => count.ToString();
|
protected virtual string Format(T count) => count.ToString();
|
||||||
|
Reference in New Issue
Block a user