Fix black layer not fading fast enough when exiting quickly from quick restart

This commit is contained in:
Dean Herbert 2024-11-16 11:50:08 +09:00
parent a5fab23e44
commit 0a1f589c80
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -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();