1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:47:29 +08:00

Fix epilepsy warning not being faded out on an early exit from PlayerLoader

This commit is contained in:
Dean Herbert 2021-10-18 13:30:37 +09:00
parent 0d992a0493
commit 59dc04017e

View File

@ -246,6 +246,9 @@ namespace osu.Game.Screens.Play
cancelLoad();
contentOut();
// If the load sequence was interrupted, the epilepsy warning may already be displayed (or in the process of being displayed).
epilepsyWarning?.Hide();
// Ensure the screen doesn't expire until all the outwards fade operations have completed.
this.Delay(content_out_duration).FadeOut();