Move load() under the ctor

This commit is contained in:
Andrei Zavatski 2019-10-15 11:26:58 +03:00
parent eb5dad08aa
commit b2885e7b13
1 changed files with 6 additions and 6 deletions

View File

@ -113,6 +113,12 @@ public CommentsContainer(CommentableType type, long id)
});
}
[BackgroundDependencyLoader]
private void load()
{
background.Colour = colours.Gray2;
}
protected override void LoadComplete()
{
Sort.BindValueChanged(onSortChanged, true);
@ -184,12 +190,6 @@ private void onSuccess(CommentBundle response)
}, loadCancellation.Token);
}
[BackgroundDependencyLoader]
private void load()
{
background.Colour = colours.Gray2;
}
protected override void Dispose(bool isDisposing)
{
request?.Cancel();