Add comment about lazy usage

This commit is contained in:
Dean Herbert 2019-08-26 13:03:00 +09:00
parent 6e3a63dae8
commit 7b82121b85
1 changed files with 1 additions and 0 deletions

View File

@ -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();