From 3143e9d35e757dbec6778dd43fa6c8a7f093043d Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 31 Jan 2017 20:04:17 -0500 Subject: [PATCH] Fix poorly written BeatmapGroup logic --- osu.Game/Beatmaps/Drawables/BeatmapGroup.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/osu.Game/Beatmaps/Drawables/BeatmapGroup.cs b/osu.Game/Beatmaps/Drawables/BeatmapGroup.cs index 3df0198368..e7652405f7 100644 --- a/osu.Game/Beatmaps/Drawables/BeatmapGroup.cs +++ b/osu.Game/Beatmaps/Drawables/BeatmapGroup.cs @@ -38,11 +38,10 @@ namespace osu.Game.Beatmaps.Drawables get { return state; } set { + Header.Alpha = state == BeatmapGroupState.Hidden ? 0 : 1; switch (value) { case BeatmapGroupState.Expanded: - if (state == BeatmapGroupState.Hidden) - Header.Alpha = 1; foreach (BeatmapPanel panel in BeatmapPanels) panel.FadeIn(250); @@ -52,16 +51,12 @@ namespace osu.Game.Beatmaps.Drawables break; case BeatmapGroupState.Collapsed: case BeatmapGroupState.Hidden: - if (state == BeatmapGroupState.Hidden && state != value) - Header.Alpha = 1; Header.State = PanelSelectedState.NotSelected; if (SelectedPanel != null) SelectedPanel.State = PanelSelectedState.NotSelected; foreach (BeatmapPanel panel in BeatmapPanels) panel.FadeOut(300, EasingTypes.OutQuint); - if (value == BeatmapGroupState.Hidden) - Header.Alpha = 0; break; } state = value;