Don't play exit sound if screen is in a non-resumable state when exiting

This commit is contained in:
Dean Herbert
2022-06-15 17:37:14 +09:00
parent b3aa4fcf02
commit 6136e4e27a
3 changed files with 1 additions and 5 deletions

View File

@ -212,7 +212,7 @@ namespace osu.Game.Screens
public override bool OnExiting(ScreenExitEvent e)
{
if (PlayExitSound)
if (ValidForResume && PlayExitSound)
sampleExit?.Play();
if (ValidForResume && logo != null)