1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-31 02:30:06 +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
Unverified
parent f9d4fbee56
commit 0822e8b925
+2 -3
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;
}
}