mirror of
https://github.com/ppy/osu
synced 2024-12-25 00:02:48 +00:00
Revert "Revert ruleset when not applied filters (includes scope change)"
This reverts commit 9fa39cd34e
.
This commit is contained in:
parent
eeeaefbd7d
commit
257934a144
@ -18,8 +18,6 @@ namespace osu.Game.Overlays
|
|||||||
protected Bindable<RulesetInfo> Ruleset => Header.Ruleset;
|
protected Bindable<RulesetInfo> Ruleset => Header.Ruleset;
|
||||||
protected Bindable<Country> Country => Header.Country;
|
protected Bindable<Country> Country => Header.Country;
|
||||||
|
|
||||||
private bool requiresRulesetRevert;
|
|
||||||
|
|
||||||
private APIRequest lastRequest;
|
private APIRequest lastRequest;
|
||||||
|
|
||||||
[Resolved]
|
[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)
|
protected override void OnTabChanged(RankingsScope tab)
|
||||||
{
|
{
|
||||||
// country filtering is only valid for performance scope.
|
// country filtering is only valid for performance scope.
|
||||||
|
Loading…
Reference in New Issue
Block a user