mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 12:53:11 +08:00
Add inline comment mentioning why CreateChildDependencies
is being used in this instance
This commit is contained in:
parent
fdd6778f36
commit
e387feb1d6
@ -47,11 +47,11 @@ namespace osu.Game.Skinning
|
|||||||
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
|
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
|
||||||
{
|
{
|
||||||
parentSource = parent.Get<ISkinSource>();
|
parentSource = parent.Get<ISkinSource>();
|
||||||
|
|
||||||
UpdateSkinSources();
|
|
||||||
|
|
||||||
parentSource.SourceChanged += OnSourceChanged;
|
parentSource.SourceChanged += OnSourceChanged;
|
||||||
|
|
||||||
|
// ensure sources are populated and ready for use before childrens' asynchronous load flow.
|
||||||
|
UpdateSkinSources();
|
||||||
|
|
||||||
return base.CreateChildDependencies(parent);
|
return base.CreateChildDependencies(parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user