From 0a1f589c80a5461b9085609b466a303e1a9b5b07 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Sat, 16 Nov 2024 11:50:08 +0900 Subject: [PATCH] Fix black layer not fading fast enough when exiting quickly from quick restart --- osu.Game/Screens/Play/PlayerLoader.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu.Game/Screens/Play/PlayerLoader.cs b/osu.Game/Screens/Play/PlayerLoader.cs index cba7bb3b8ada..aedc268d7042 100644 --- a/osu.Game/Screens/Play/PlayerLoader.cs +++ b/osu.Game/Screens/Play/PlayerLoader.cs @@ -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();