1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 03:22:55 +08:00

Move load() under the ctor

This commit is contained in:
Andrei Zavatski 2019-10-15 11:26:58 +03:00
parent eb5dad08aa
commit b2885e7b13

View File

@ -113,6 +113,12 @@ namespace osu.Game.Overlays.Comments
}); });
} }
[BackgroundDependencyLoader]
private void load()
{
background.Colour = colours.Gray2;
}
protected override void LoadComplete() protected override void LoadComplete()
{ {
Sort.BindValueChanged(onSortChanged, true); Sort.BindValueChanged(onSortChanged, true);
@ -184,12 +190,6 @@ namespace osu.Game.Overlays.Comments
}, loadCancellation.Token); }, loadCancellation.Token);
} }
[BackgroundDependencyLoader]
private void load()
{
background.Colour = colours.Gray2;
}
protected override void Dispose(bool isDisposing) protected override void Dispose(bool isDisposing)
{ {
request?.Cancel(); request?.Cancel();