mirror of https://github.com/ppy/osu
Fix double restart call still existing
This commit is contained in:
parent
5d3f55fe4d
commit
1a31e56d4a
|
@ -719,9 +719,14 @@ public bool Restart(bool quickRestart = false)
|
||||||
// stopping here is to ensure music doesn't become audible after exiting back to PlayerLoader.
|
// stopping here is to ensure music doesn't become audible after exiting back to PlayerLoader.
|
||||||
musicController.Stop();
|
musicController.Stop();
|
||||||
|
|
||||||
RestartRequested?.Invoke(quickRestart);
|
if (RestartRequested != null)
|
||||||
|
{
|
||||||
|
skipExitTransition = quickRestart;
|
||||||
|
RestartRequested?.Invoke(quickRestart);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return PerformExit(skipTransition: quickRestart);
|
return PerformExit(quickRestart);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue