mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 14:10:33 +08:00
Do not play open/close samples for top-level menus
This commit is contained in:
@@ -40,7 +40,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
protected override void AnimateOpen()
|
||||
{
|
||||
if (!wasOpened)
|
||||
if (!TopLevelMenu && !wasOpened)
|
||||
sampleOpen?.Play();
|
||||
|
||||
this.FadeIn(300, Easing.OutQuint);
|
||||
@@ -49,7 +49,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
protected override void AnimateClose()
|
||||
{
|
||||
if (wasOpened)
|
||||
if (!TopLevelMenu && wasOpened)
|
||||
sampleClose?.Play();
|
||||
|
||||
this.FadeOut(300, Easing.OutQuint);
|
||||
|
||||
Reference in New Issue
Block a user