1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Match code between updateSelectedBeatmap/Ruleset

This commit is contained in:
Dean Herbert 2021-01-05 20:38:58 +09:00
parent 53e6a349bb
commit 4b539b01c1

View File

@ -435,13 +435,15 @@ namespace osu.Game.Screens.Select
return;
beatmapNoDebounce = beatmap;
performUpdateSelected();
}
private void updateSelectedRuleset(RulesetInfo ruleset)
{
if (ruleset == null || ruleset.Equals(rulesetNoDebounce))
if (ruleset == null && rulesetNoDebounce == null)
return;
if (ruleset?.Equals(rulesetNoDebounce) == true)
return;
rulesetNoDebounce = ruleset;