Fix failing test scene due to new dependency

This commit is contained in:
Dean Herbert 2024-12-28 01:02:15 +09:00
parent 6a6db5a22b
commit 1b2a223a5f
No known key found for this signature in database

View File

@ -28,7 +28,7 @@ namespace osu.Game.Screens.Edit.Setup
public override LocalisableString Title => EditorSetupStrings.MetadataHeader;
[BackgroundDependencyLoader]
private void load(SetupScreen setupScreen)
private void load(SetupScreen? setupScreen)
{
Children = new[]
{
@ -42,7 +42,9 @@ namespace osu.Game.Screens.Edit.Setup
tagsTextBox = createTextBox<FormTextBox>(BeatmapsetsStrings.ShowInfoTags)
};
setupScreen.MetadataChanged += reloadMetadata;
if (setupScreen != null)
setupScreen.MetadataChanged += reloadMetadata;
reloadMetadata();
}