Double check if the selectedpanel is not the provided as argument

This commit is contained in:
ColdVolcano 2017-05-01 00:13:00 -05:00
parent ad03f5cede
commit f2b0602f90

View File

@ -343,6 +343,8 @@ namespace osu.Game.Screens.Select
group.State = BeatmapGroupState.Expanded; group.State = BeatmapGroupState.Expanded;
panel.State = PanelSelectedState.Selected; panel.State = PanelSelectedState.Selected;
if (selectedPanel == panel) return;
selectedPanel = panel; selectedPanel = panel;
selectedGroup = group; selectedGroup = group;