1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 09:03:22 +08:00

Small logic adjustments

This commit is contained in:
Andrei Zavatski 2019-11-11 19:06:46 +03:00
parent 32cc7b3d4d
commit 0578f91a76

View File

@ -161,6 +161,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
{
base.LoadComplete();
scope.BindValueChanged(_ => getScores());
ruleset.BindValueChanged(_ => getScores());
modSelector.SelectedMods.ItemsAdded += _ => getScores();
modSelector.SelectedMods.ItemsRemoved += _ => getScores();
@ -173,12 +174,12 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
{
var beatmapRuleset = beatmap.NewValue?.Ruleset;
if (modSelector.Ruleset.Value?.Equals(beatmapRuleset) ?? false)
if (ruleset.Value?.Equals(beatmapRuleset) ?? false)
modSelector.DeselectAll();
else
ruleset.Value = beatmapRuleset;
getScores();
scope.Value = BeatmapLeaderboardScope.Global;
}
private void onUserChanged(ValueChangedEvent<User> user)