mirror of
https://github.com/ppy/osu.git
synced 2025-03-01 21:44:06 +08:00
Fix more than obvious test failure
Please run tests please run tests please run tests.
This commit is contained in:
parent
1a7feeb4ed
commit
f12fffd116
@ -125,9 +125,6 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private OsuColour colours { get; set; } = null!;
|
private OsuColour colours { get; set; } = null!;
|
||||||
|
|
||||||
[Resolved]
|
|
||||||
private OsuGame game { get; set; } = null!;
|
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private OsuConfigManager config { get; set; } = null!;
|
private OsuConfigManager config { get; set; } = null!;
|
||||||
|
|
||||||
@ -137,6 +134,9 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private IDialogOverlay? dialogOverlay { get; set; }
|
private IDialogOverlay? dialogOverlay { get; set; }
|
||||||
|
|
||||||
|
[Resolved]
|
||||||
|
private OsuGame? game { get; set; }
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
@ -148,7 +148,7 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
if (!Active.Value)
|
if (!Active.Value)
|
||||||
disclaimerShown.Value = true;
|
disclaimerShown.Value = true;
|
||||||
|
|
||||||
if (game.HideUnlicensedContent)
|
if (game?.HideUnlicensedContent == true)
|
||||||
{
|
{
|
||||||
Enabled.Value = false;
|
Enabled.Value = false;
|
||||||
Active.Disabled = true;
|
Active.Disabled = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user