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

fixup! Allow version manager to load completely async

This commit is contained in:
Dean Herbert 2017-10-23 12:48:33 +09:00
parent 9b7d569a65
commit 65b23f38f1

View File

@ -18,8 +18,6 @@ namespace osu.Desktop
{ {
internal class OsuGameDesktop : OsuGame internal class OsuGameDesktop : OsuGame
{ {
private VersionManager versionManager;
public OsuGameDesktop(string[] args = null) public OsuGameDesktop(string[] args = null)
: base(args) : base(args)
{ {
@ -81,7 +79,7 @@ namespace osu.Desktop
{ {
base.LoadComplete(); base.LoadComplete();
LoadComponentAsync(versionManager = new VersionManager { Depth = int.MinValue }, v => LoadComponentAsync(new VersionManager { Depth = int.MinValue }, v =>
{ {
Add(v); Add(v);
v.State = Visibility.Visible; v.State = Visibility.Visible;