mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Test if there are beatmaps when click on delete btn
This commit is contained in:
@ -537,6 +537,8 @@ namespace osu.Game.Screens.Select
|
|||||||
private void delete(BeatmapSetInfo beatmap)
|
private void delete(BeatmapSetInfo beatmap)
|
||||||
{
|
{
|
||||||
if (beatmap == null) return;
|
if (beatmap == null) return;
|
||||||
|
// Null check because no beatmaps actually causes beatmap.Beatmaps to be null
|
||||||
|
if (!(beatmap.Beatmaps?.Any() ?? false)) return;
|
||||||
dialogOverlay?.Push(new BeatmapDeleteDialog(beatmap));
|
dialogOverlay?.Push(new BeatmapDeleteDialog(beatmap));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user