mirror of https://github.com/ppy/osu
Add comment about lazy usage
This commit is contained in:
parent
6e3a63dae8
commit
7b82121b85
|
@ -45,6 +45,7 @@ public OsuLegacySkin(ISkinSource source)
|
||||||
|
|
||||||
private void sourceChanged()
|
private void sourceChanged()
|
||||||
{
|
{
|
||||||
|
// these need to be lazy in order to ensure they aren't called before the dependencies have been loaded into our source.
|
||||||
configuration = new Lazy<SkinConfiguration>(() =>
|
configuration = new Lazy<SkinConfiguration>(() =>
|
||||||
{
|
{
|
||||||
var config = new SkinConfiguration();
|
var config = new SkinConfiguration();
|
||||||
|
|
Loading…
Reference in New Issue