1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-01 14:53:09 +08:00

Fix more than obvious test failure

Please run tests please run tests please run tests.
This commit is contained in:
Dean Herbert 2024-12-23 14:43:36 +09:00
parent 1a7feeb4ed
commit f12fffd116
No known key found for this signature in database

View File

@ -125,9 +125,6 @@ namespace osu.Game.Overlays.BeatmapListing
[Resolved]
private OsuColour colours { get; set; } = null!;
[Resolved]
private OsuGame game { get; set; } = null!;
[Resolved]
private OsuConfigManager config { get; set; } = null!;
@ -137,6 +134,9 @@ namespace osu.Game.Overlays.BeatmapListing
[Resolved]
private IDialogOverlay? dialogOverlay { get; set; }
[Resolved]
private OsuGame? game { get; set; }
protected override void LoadComplete()
{
base.LoadComplete();
@ -148,7 +148,7 @@ namespace osu.Game.Overlays.BeatmapListing
if (!Active.Value)
disclaimerShown.Value = true;
if (game.HideUnlicensedContent)
if (game?.HideUnlicensedContent == true)
{
Enabled.Value = false;
Active.Disabled = true;