mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:17:26 +08:00
Fix preview panel not being marked nullable
This commit is contained in:
parent
f9d4fbee56
commit
0822e8b925
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user