mirror of
https://github.com/ppy/osu
synced 2025-04-17 12:35:45 +00:00
Only call Reset()
if lastCategory
and lastHasQuery
is null
This commit is contained in:
parent
610d2f9dc7
commit
0366a8e348
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
using osu.Framework.Allocation;
|
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Framework.Graphics.UserInterface;
|
using osu.Framework.Graphics.UserInterface;
|
||||||
@ -21,10 +20,12 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
private SearchCategory? lastCategory;
|
private SearchCategory? lastCategory;
|
||||||
private bool? lastHasQuery;
|
private bool? lastHasQuery;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
protected override void LoadComplete()
|
||||||
private void load()
|
|
||||||
{
|
{
|
||||||
Reset(SearchCategory.Leaderboard, false);
|
base.LoadComplete();
|
||||||
|
|
||||||
|
if (lastCategory == null && lastHasQuery == null)
|
||||||
|
Reset(SearchCategory.Leaderboard, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Reset(SearchCategory category, bool hasQuery)
|
public void Reset(SearchCategory category, bool hasQuery)
|
||||||
|
Loading…
Reference in New Issue
Block a user