1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:47:24 +08:00

Fix preview panel not being marked nullable

This commit is contained in:
Bartłomiej Dach 2023-09-11 10:18:24 +02:00
parent f9d4fbee56
commit 0822e8b925
No known key found for this signature in database

View File

@ -124,8 +124,7 @@ namespace osu.Game.Overlays.Mods
private Container aboveColumnsContent = null!;
private DifficultyMultiplierDisplay? multiplierDisplay;
private ModEffectPreviewPanel modEffectPreviewPanel = null!;
private ModEffectPreviewPanel? modEffectPreviewPanel;
protected ShearedButton BackButton { get; private set; } = null!;
protected ShearedToggleButton? CustomisationButton { get; private set; }
@ -143,7 +142,7 @@ namespace osu.Game.Overlays.Mods
if (beatmap == value) return;
beatmap = value;
if (IsLoaded)
if (IsLoaded && modEffectPreviewPanel != null)
modEffectPreviewPanel.BeatmapInfo.Value = beatmap?.BeatmapInfo;
}
}