1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-07 23:15:45 +08:00

Hide back button when quick-restarting unless load time takes long

This commit is contained in:
Salman Alshamrani 2024-11-24 05:40:06 -05:00
parent 2420793466
commit ae9119eef0

View File

@ -478,6 +478,8 @@ namespace osu.Game.Screens.Play
if (quickRestart)
{
BackButtonState.Value = Visibility.Hidden;
// A quick restart starts by triggering a fade to black
AddInternal(quickRestartBlackLayer = new Box
{
@ -496,6 +498,8 @@ namespace osu.Game.Screens.Play
.Delay(quick_restart_initial_delay)
.ScaleTo(1)
.FadeInFromZero(500, Easing.OutQuint);
this.Delay(quick_restart_initial_delay).Schedule(() => BackButtonState.Value = Visibility.Visible);
}
else
{