1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 11:42:54 +08:00

Make skin editor overlay dependency nullable to fix tests

This commit is contained in:
Bartłomiej Dach 2023-11-27 12:09:13 +09:00
parent 3f48f4acdf
commit 7e3bb5f8db
No known key found for this signature in database

View File

@ -29,7 +29,7 @@ namespace osu.Game.Overlays.SkinEditor
private IPerformFromScreenRunner? performer { get; set; }
[Resolved]
private SkinEditorOverlay skinEditorOverlay { get; set; } = null!;
private SkinEditorOverlay? skinEditorOverlay { get; set; }
public SkinEditorSceneLibrary()
{
@ -86,7 +86,7 @@ namespace osu.Game.Overlays.SkinEditor
Text = SkinEditorStrings.Gameplay,
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
Action = () => skinEditorOverlay.PresentGameplay(),
Action = () => skinEditorOverlay?.PresentGameplay(),
},
}
},