mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:52:55 +08:00
Display "required save" popup when creating another difficulty on a new beatmap
This commit is contained in:
parent
944fee56f8
commit
b2749943e2
@ -1095,6 +1095,19 @@ namespace osu.Game.Screens.Edit
|
||||
|
||||
protected void CreateNewDifficulty(RulesetInfo rulesetInfo)
|
||||
{
|
||||
if (isNewBeatmap)
|
||||
{
|
||||
dialogOverlay.Push(new SaveRequiredPopupDialog("This beatmap will be saved in order to create another difficulty.", () =>
|
||||
{
|
||||
if (!Save())
|
||||
return;
|
||||
|
||||
CreateNewDifficulty(rulesetInfo);
|
||||
}));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (!rulesetInfo.Equals(editorBeatmap.BeatmapInfo.Ruleset))
|
||||
{
|
||||
switchToNewDifficulty(rulesetInfo, false);
|
||||
|
Loading…
Reference in New Issue
Block a user