1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 18:13:00 +08:00

Don't perform a selection if we already have the correct panel selected.

This commit is contained in:
Dean Herbert 2017-04-28 20:31:09 +09:00
parent 28375ed1fc
commit b78fa99620

View File

@ -331,6 +331,8 @@ namespace osu.Game.Screens.Select
if (panel == null)
panel = group.BeatmapPanels.First();
if (selectedPanel == panel) return;
Trace.Assert(group.BeatmapPanels.Contains(panel), @"Selected panel must be in provided group");
if (selectedGroup != null && selectedGroup != group && selectedGroup.State != BeatmapGroupState.Hidden)