mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 20:45:46 +08:00
Fix wrong beatmap selection in song-select menu on deleting selected beatmap
This commit is contained in:
parent
6a91175c0f
commit
7cff413ab0
@ -375,6 +375,9 @@ namespace osu.Game.Screens.Select
|
||||
if (group == null)
|
||||
return;
|
||||
|
||||
if (selectedGroup == group)
|
||||
SelectNext();
|
||||
|
||||
groups.Remove(group);
|
||||
panels.Remove(group.Header);
|
||||
foreach (var p in group.BeatmapPanels)
|
||||
@ -383,9 +386,6 @@ namespace osu.Game.Screens.Select
|
||||
scrollableContent.Remove(group.Header);
|
||||
scrollableContent.RemoveRange(group.BeatmapPanels);
|
||||
|
||||
if (selectedGroup == group)
|
||||
SelectNext();
|
||||
|
||||
computeYPositions();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user