mirror of
https://github.com/ppy/osu.git
synced 2026-05-24 05:29:57 +08:00
Don't play exit sound if screen is in a non-resumable state when exiting
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user