mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 10:23:04 +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)
|
if (group == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (selectedGroup == group)
|
||||||
|
SelectNext();
|
||||||
|
|
||||||
groups.Remove(group);
|
groups.Remove(group);
|
||||||
panels.Remove(group.Header);
|
panels.Remove(group.Header);
|
||||||
foreach (var p in group.BeatmapPanels)
|
foreach (var p in group.BeatmapPanels)
|
||||||
@ -383,9 +386,6 @@ namespace osu.Game.Screens.Select
|
|||||||
scrollableContent.Remove(group.Header);
|
scrollableContent.Remove(group.Header);
|
||||||
scrollableContent.RemoveRange(group.BeatmapPanels);
|
scrollableContent.RemoveRange(group.BeatmapPanels);
|
||||||
|
|
||||||
if (selectedGroup == group)
|
|
||||||
SelectNext();
|
|
||||||
|
|
||||||
computeYPositions();
|
computeYPositions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user