mirror of
https://github.com/ppy/osu.git
synced 2026-05-21 06:29:52 +08:00
Fix nullref when changing display mode without any BeatmapSets added
This commit is contained in:
@@ -121,6 +121,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
private void recreatePanels(PanelDisplayStyle displayStyle)
|
||||
{
|
||||
if (BeatmapSets == null) return;
|
||||
panels.Children = BeatmapSets.Select(b => displayStyle == PanelDisplayStyle.Grid ? (DirectPanel)new DirectGridPanel(b) { Width = 400 } : new DirectListPanel(b));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user