Only call Reset() if lastCategory and lastHasQuery is null

This commit is contained in:
Joseph Madamba 2023-01-31 12:44:44 -08:00
parent 610d2f9dc7
commit 0366a8e348

View File

@ -3,7 +3,6 @@
#nullable disable
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.UserInterface;
@ -21,9 +20,11 @@ namespace osu.Game.Overlays.BeatmapListing
private SearchCategory? lastCategory;
private bool? lastHasQuery;
[BackgroundDependencyLoader]
private void load()
protected override void LoadComplete()
{
base.LoadComplete();
if (lastCategory == null && lastHasQuery == null)
Reset(SearchCategory.Leaderboard, false);
}