mirror of https://github.com/ppy/osu
Don't play editor exit sound when changing difficulties
This commit is contained in:
parent
fd4529aa7c
commit
713cff3403
|
@ -63,7 +63,9 @@ public class Editor : ScreenWithBeatmapBackground, IKeyBindingHandler<GlobalActi
|
|||
|
||||
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 @@ protected void CreateNewDifficulty(RulesetInfo rulesetInfo)
|
|||
}
|
||||
|
||||
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