Skip to content

Commit

Permalink
Merge pull request #30680 from peppy/fix-black-layer-on-quick-restart…
Browse files Browse the repository at this point in the history
…-exit

Fix black layer not fading fast enough when exiting quickly from quick restart
  • Loading branch information
smoogipoo authored Nov 16, 2024
2 parents a5fab23 + 0a1f589 commit bf2e0ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osu.Game/Screens/Play/PlayerLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ public override bool OnExiting(ScreenExitEvent e)
cancelLoad();
ContentOut();

quickRestartBlackLayer?.FadeOut(100, Easing.OutQuint).Expire();
quickRestartBlackLayer = null;

// Ensure the screen doesn't expire until all the outwards fade operations have completed.
this.Delay(CONTENT_OUT_DURATION).FadeOut();

Expand Down

0 comments on commit bf2e0ed

Please sign in to comment.