Revert "Revert ruleset when not applied filters (includes scope change)"

This reverts commit 9fa39cd34e.
This commit is contained in:
Salman Ahmed 2021-08-23 12:38:30 +03:00
parent eeeaefbd7d
commit 257934a144

View File

@ -18,8 +18,6 @@ namespace osu.Game.Overlays
protected Bindable<RulesetInfo> Ruleset => Header.Ruleset;
protected Bindable<Country> Country => Header.Country;
private bool requiresRulesetRevert;
private APIRequest lastRequest;
[Resolved]
@ -52,25 +50,6 @@ namespace osu.Game.Overlays
});
}
protected override void PopIn()
{
base.PopIn();
if (requiresRulesetRevert)
{
Ruleset.SetDefault();
requiresRulesetRevert = false;
}
}
protected override void PopOutComplete()
{
base.PopOutComplete();
if (Header.Current.Value == default && Country.Value == null)
requiresRulesetRevert = true;
}
protected override void OnTabChanged(RankingsScope tab)
{
// country filtering is only valid for performance scope.