mirror of
https://github.com/ppy/osu
synced 2025-01-19 04:20:59 +00:00
Don't play exit sound if screen is in a non-resumable state when exiting
This commit is contained in:
parent
b3aa4fcf02
commit
6136e4e27a
@ -40,8 +40,6 @@ namespace osu.Game.Screens.Edit
|
||||
|
||||
public override bool DisallowExternalBeatmapRulesetChanges => true;
|
||||
|
||||
protected override bool PlayExitSound => false;
|
||||
|
||||
[Resolved]
|
||||
private BeatmapManager beatmapManager { get; set; }
|
||||
|
||||
|
@ -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)
|
||||
|
@ -51,8 +51,6 @@ namespace osu.Game.Screens.Play
|
||||
// We show the previous screen status
|
||||
protected override UserActivity? InitialActivity => null;
|
||||
|
||||
protected override bool PlayExitSound => false;
|
||||
|
||||
protected BeatmapMetadataDisplay MetadataInfo { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user