mirror of
https://github.com/ppy/osu.git
synced 2025-01-29 01:22:54 +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)
|
if (panel == null)
|
||||||
panel = group.BeatmapPanels.First();
|
panel = group.BeatmapPanels.First();
|
||||||
|
|
||||||
|
if (selectedPanel == panel) return;
|
||||||
|
|
||||||
Trace.Assert(group.BeatmapPanels.Contains(panel), @"Selected panel must be in provided group");
|
Trace.Assert(group.BeatmapPanels.Contains(panel), @"Selected panel must be in provided group");
|
||||||
|
|
||||||
if (selectedGroup != null && selectedGroup != group && selectedGroup.State != BeatmapGroupState.Hidden)
|
if (selectedGroup != null && selectedGroup != group && selectedGroup.State != BeatmapGroupState.Hidden)
|
||||||
|
Loading…
Reference in New Issue
Block a user