mirror of https://github.com/ppy/osu
Avoid Intro screen holding references to the intro beatmap
This commit is contained in:
parent
115dcc3147
commit
29bb227de2
|
@ -86,6 +86,7 @@ protected override void LogoArriving(OsuLogo logo, bool resuming)
|
|||
if (!resuming)
|
||||
{
|
||||
Beatmap.Value = introBeatmap;
|
||||
introBeatmap = null;
|
||||
|
||||
if (menuVoice.Value)
|
||||
welcome.Play();
|
||||
|
@ -94,7 +95,10 @@ protected override void LogoArriving(OsuLogo logo, bool resuming)
|
|||
{
|
||||
// Only start the current track if it is the menu music. A beatmap's track is started when entering the Main Manu.
|
||||
if (menuMusic.Value)
|
||||
{
|
||||
track.Start();
|
||||
track = null;
|
||||
}
|
||||
|
||||
LoadComponentAsync(mainMenu = new MainMenu());
|
||||
|
||||
|
|
Loading…
Reference in New Issue