From 7c8ef2a82be3262407e3b1298395fda2d9427e4e Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Mon, 14 Nov 2016 04:22:06 +0800 Subject: [PATCH] Select and unselect BeatmapPanel when selecting BeatmapGroup. --- osu.Game/Beatmaps/Drawable/BeatmapGroup.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osu.Game/Beatmaps/Drawable/BeatmapGroup.cs b/osu.Game/Beatmaps/Drawable/BeatmapGroup.cs index 1e433922a6..c66a6ad259 100644 --- a/osu.Game/Beatmaps/Drawable/BeatmapGroup.cs +++ b/osu.Game/Beatmaps/Drawable/BeatmapGroup.cs @@ -51,11 +51,15 @@ namespace osu.Game.Beatmaps.Drawable difficulties.Show(); header.State = PanelSelectedState.Selected; + if (SelectedPanel != null) + SelectedPanel.State = PanelSelectedState.Selected; break; case BeatmapGroupState.Collapsed: FadeTo(0.8f, 250); header.State = PanelSelectedState.NotSelected; + if (SelectedPanel != null) + SelectedPanel.State = PanelSelectedState.NotSelected; difficulties.Hide(); break; }