1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 10:23:20 +08:00

Only update user rank panel display when ruleset matches

Nothing behaviourally different, just reduce number of redundant calls.
This commit is contained in:
Salman Alshamrani 2024-11-17 18:45:05 -05:00
parent 07609b6267
commit 1847b679db

View File

@ -58,7 +58,12 @@ namespace osu.Game.Users
if (statisticsProvider != null)
{
statisticsUpdate = statisticsProvider.StatisticsUpdate.GetBoundCopy();
statisticsUpdate.BindValueChanged(_ => updateDisplay());
statisticsUpdate.BindValueChanged(u =>
{
if (u.NewValue.Ruleset.Equals(ruleset.Value))
updateDisplay();
});
ruleset.BindValueChanged(_ => updateDisplay(), true);
}
}