mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Test staying on same difficulty due to unsaved changes
This commit is contained in:
@ -498,7 +498,7 @@ namespace osu.Game.Screens.Edit
|
||||
|
||||
if (isNewBeatmap || HasUnsavedChanges)
|
||||
{
|
||||
dialogOverlay?.Push(new PromptForSaveDialog(confirmExit, confirmExitWithSave));
|
||||
dialogOverlay?.Push(new PromptForSaveDialog(confirmExit, confirmExitWithSave, cancelPendingDifficultySwitch));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -737,7 +737,16 @@ namespace osu.Game.Screens.Edit
|
||||
|
||||
loader.ValidForResume = true;
|
||||
this.Exit();
|
||||
loader.PushEditor(beatmapInfo);
|
||||
loader.ScheduleDifficultySwitch(beatmapInfo);
|
||||
}
|
||||
|
||||
private void cancelPendingDifficultySwitch()
|
||||
{
|
||||
if (loader == null)
|
||||
return;
|
||||
|
||||
loader.ValidForResume = false;
|
||||
loader.CancelDifficultySwitch();
|
||||
}
|
||||
|
||||
public double SnapTime(double time, double? referenceTime) => editorBeatmap.SnapTime(time, referenceTime);
|
||||
|
Reference in New Issue
Block a user