mirror of
https://github.com/ppy/osu.git
synced 2025-01-29 07:32:54 +08: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;
|
public override bool DisallowExternalBeatmapRulesetChanges => true;
|
||||||
|
|
||||||
protected override bool PlayExitSound => false;
|
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private BeatmapManager beatmapManager { get; set; }
|
private BeatmapManager beatmapManager { get; set; }
|
||||||
|
|
||||||
|
@ -212,7 +212,7 @@ namespace osu.Game.Screens
|
|||||||
|
|
||||||
public override bool OnExiting(ScreenExitEvent e)
|
public override bool OnExiting(ScreenExitEvent e)
|
||||||
{
|
{
|
||||||
if (PlayExitSound)
|
if (ValidForResume && PlayExitSound)
|
||||||
sampleExit?.Play();
|
sampleExit?.Play();
|
||||||
|
|
||||||
if (ValidForResume && logo != null)
|
if (ValidForResume && logo != null)
|
||||||
|
@ -51,8 +51,6 @@ namespace osu.Game.Screens.Play
|
|||||||
// We show the previous screen status
|
// We show the previous screen status
|
||||||
protected override UserActivity? InitialActivity => null;
|
protected override UserActivity? InitialActivity => null;
|
||||||
|
|
||||||
protected override bool PlayExitSound => false;
|
|
||||||
|
|
||||||
protected BeatmapMetadataDisplay MetadataInfo { get; private set; } = null!;
|
protected BeatmapMetadataDisplay MetadataInfo { get; private set; } = null!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user