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:
parent
07609b6267
commit
1847b679db
@ -58,7 +58,12 @@ namespace osu.Game.Users
|
|||||||
if (statisticsProvider != null)
|
if (statisticsProvider != null)
|
||||||
{
|
{
|
||||||
statisticsUpdate = statisticsProvider.StatisticsUpdate.GetBoundCopy();
|
statisticsUpdate = statisticsProvider.StatisticsUpdate.GetBoundCopy();
|
||||||
statisticsUpdate.BindValueChanged(_ => updateDisplay());
|
statisticsUpdate.BindValueChanged(u =>
|
||||||
|
{
|
||||||
|
if (u.NewValue.Ruleset.Equals(ruleset.Value))
|
||||||
|
updateDisplay();
|
||||||
|
});
|
||||||
|
|
||||||
ruleset.BindValueChanged(_ => updateDisplay(), true);
|
ruleset.BindValueChanged(_ => updateDisplay(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user