1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:47:24 +08:00

Show results immediately if user hits "back" key after finishing gameplay

I've gone ahead and matched the osu!stable behaviour for this, as it
seems like it's what people are used to and they will settle for no
less.

Closes https://github.com/ppy/osu/issues/18089.
This commit is contained in:
Dean Herbert 2023-10-12 14:42:45 +09:00
parent 256c95f045
commit 7c0d496730
No known key found for this signature in database

View File

@ -601,8 +601,13 @@ namespace osu.Game.Screens.Play
}
}
// if an exit has been requested, cancel any pending completion (the user has shown intention to exit).
resultsDisplayDelegate?.Cancel();
// Matching osu!stable behaviour, if the results screen is pending and the user requests an exit,
// show the results instead.
if (resultsDisplayDelegate != null)
{
progressToResults(false);
return;
}
// import current score if possible.
prepareAndImportScoreAsync();