1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:47:26 +08:00

Add inline comment mentioning why CreateChildDependencies is being used in this instance

This commit is contained in:
Dean Herbert 2021-06-28 14:39:55 +09:00
parent fdd6778f36
commit e387feb1d6

View File

@ -47,11 +47,11 @@ namespace osu.Game.Skinning
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
{
parentSource = parent.Get<ISkinSource>();
UpdateSkinSources();
parentSource.SourceChanged += OnSourceChanged;
// ensure sources are populated and ready for use before childrens' asynchronous load flow.
UpdateSkinSources();
return base.CreateChildDependencies(parent);
}