Fix getScores can be fired twice on user change

This commit is contained in:
Andrei Zavatski 2019-11-24 00:01:49 +03:00
parent ced78dc900
commit 29b05e2939

View File

@ -213,9 +213,12 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
private void onUserChanged(ValueChangedEvent<User> user)
{
modSelector.DeselectAll();
if (modSelector.SelectedMods.Any())
modSelector.DeselectAll();
else
getScores();
modSelector.FadeTo(userIsSupporter ? 1 : 0);
getScores();
}
private void getScores()