Disable logo click sound when exiting

This commit is contained in:
aitani9 2021-06-25 09:21:26 -07:00
parent c8022126dc
commit 6bc71590c5

View File

@ -261,7 +261,7 @@ namespace osu.Game.Screens.Menu
switch (state) switch (state)
{ {
default: default:
return true; return false;
case ButtonSystemState.Initial: case ButtonSystemState.Initial:
State = ButtonSystemState.TopLevel; State = ButtonSystemState.TopLevel;
@ -274,10 +274,6 @@ namespace osu.Game.Screens.Menu
case ButtonSystemState.Play: case ButtonSystemState.Play:
buttonsPlay.First().Click(); buttonsPlay.First().Click();
return false; return false;
// no sound should be played if the logo is clicked on while transitioning to song select
case ButtonSystemState.EnteringMode:
return false;
} }
} }