mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 20:59:35 +08:00
check removed beatmap being null, check promptdelete beatmap being default
This commit is contained in:
parent
5d30efc090
commit
d0e99f0c95
@ -313,6 +313,9 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
private void removeGroup(BeatmapGroup group)
|
||||
{
|
||||
if (group == null)
|
||||
return;
|
||||
|
||||
groups.Remove(group);
|
||||
panels.Remove(group.Header);
|
||||
foreach (var p in group.BeatmapPanels)
|
||||
|
@ -384,7 +384,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
private void promptDelete()
|
||||
{
|
||||
if (Beatmap != null)
|
||||
if (Beatmap != null && !Beatmap.IsDefault)
|
||||
dialogOverlay?.Push(new BeatmapDeleteDialog(Beatmap));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user