mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 14:43:02 +08:00
Fix nullref when changing display mode without any BeatmapSets added
This commit is contained in:
parent
8c77f85667
commit
4e2126dca8
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user