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:
parent
28375ed1fc
commit
b78fa99620
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user