Fix selection not collapsing when clicking set headers exclusively.

This commit is contained in:
Dean Herbert 2016-10-29 03:43:52 +09:00
parent c969e0b4f0
commit d47924ff7b

View File

@ -117,6 +117,8 @@ namespace osu.Game.Beatmaps.Drawable
//we want to make sure one of our children is selected in the case none have been selected yet.
if (SelectedPanel == null)
BeatmapPanels.First().State = PanelSelectedState.Selected;
else
SelectionChanged?.Invoke(this, SelectedPanel.Beatmap);
}
private void panelGainedSelection(BeatmapPanel panel)