mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Replace existing cases with new helper method
This commit is contained in:
@ -805,14 +805,14 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
private void delete(BeatmapSetInfo beatmap)
|
||||
{
|
||||
if (beatmap == null || beatmap.ID <= 0) return;
|
||||
if (beatmap == null || !beatmap.IsManaged) return;
|
||||
|
||||
dialogOverlay?.Push(new BeatmapDeleteDialog(beatmap));
|
||||
}
|
||||
|
||||
private void clearScores(BeatmapInfo beatmapInfo)
|
||||
{
|
||||
if (beatmapInfo == null || beatmapInfo.ID <= 0) return;
|
||||
if (beatmapInfo == null || !beatmapInfo.IsManaged) return;
|
||||
|
||||
dialogOverlay?.Push(new BeatmapClearScoresDialog(beatmapInfo, () =>
|
||||
// schedule done here rather than inside the dialog as the dialog may fade out and never callback.
|
||||
|
Reference in New Issue
Block a user