mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Merge branch 'master' into fix-editor-batch-handling
This commit is contained in:
@ -469,10 +469,17 @@ namespace osu.Game.Screens.Edit
|
||||
|
||||
private void confirmExit()
|
||||
{
|
||||
// stop the track if playing to allow the parent screen to choose a suitable playback mode.
|
||||
Beatmap.Value.Track.Stop();
|
||||
|
||||
if (isNewBeatmap)
|
||||
{
|
||||
// confirming exit without save means we should delete the new beatmap completely.
|
||||
beatmapManager.Delete(playableBeatmap.BeatmapInfo.BeatmapSet);
|
||||
|
||||
// in theory this shouldn't be required but due to EF core not sharing instance states 100%
|
||||
// MusicController is unaware of the changed DeletePending state.
|
||||
Beatmap.SetDefault();
|
||||
}
|
||||
|
||||
exitConfirmed = true;
|
||||
|
Reference in New Issue
Block a user