mirror of
https://github.com/ppy/osu.git
synced 2024-09-21 22:07:25 +08:00
Don't play editor exit sound when changing difficulties
This commit is contained in:
parent
fd4529aa7c
commit
713cff3403
@ -63,7 +63,9 @@ namespace osu.Game.Screens.Edit
|
||||
|
||||
public override bool? AllowTrackAdjustments => false;
|
||||
|
||||
protected override bool PlayExitSound => !HasUnsavedChanges;
|
||||
protected override bool PlayExitSound => !HasUnsavedChanges && !isChangingDifficulties;
|
||||
|
||||
private bool isChangingDifficulties;
|
||||
|
||||
protected bool HasUnsavedChanges
|
||||
{
|
||||
@ -859,7 +861,10 @@ namespace osu.Game.Screens.Edit
|
||||
}
|
||||
|
||||
private void switchToNewDifficulty(RulesetInfo rulesetInfo, bool createCopy)
|
||||
=> loader?.ScheduleSwitchToNewDifficulty(editorBeatmap.BeatmapInfo, rulesetInfo, createCopy, GetState(rulesetInfo));
|
||||
{
|
||||
isChangingDifficulties = true;
|
||||
loader?.ScheduleSwitchToNewDifficulty(editorBeatmap.BeatmapInfo, rulesetInfo, createCopy, GetState(rulesetInfo));
|
||||
}
|
||||
|
||||
private EditorMenuItem createDifficultySwitchMenu()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user