1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 18:23:04 +08:00

Allow version manager to load completely async

This commit is contained in:
Dean Herbert 2017-10-23 01:19:28 +09:00
parent cfd081493e
commit ae0029082a

View File

@ -12,7 +12,6 @@ using osu.Desktop.Overlays;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Platform; using osu.Framework.Platform;
using osu.Game; using osu.Game;
using osu.Game.Screens.Menu;
using OpenTK.Input; using OpenTK.Input;
namespace osu.Desktop namespace osu.Desktop
@ -82,16 +81,11 @@ namespace osu.Desktop
{ {
base.LoadComplete(); base.LoadComplete();
LoadComponentAsync(versionManager = new VersionManager { Depth = int.MinValue }); LoadComponentAsync(versionManager = new VersionManager { Depth = int.MinValue }, v =>
ScreenChanged += s =>
{ {
if (s is Intro && s.ChildScreen == null) Add(v);
{ v.State = Visibility.Visible;
Add(versionManager); });
versionManager.State = Visibility.Visible;
}
};
} }
public override void SetHost(GameHost host) public override void SetHost(GameHost host)