Move LoadComplete up in method

This commit is contained in:
Dean Herbert 2020-02-14 15:35:39 +09:00
parent 7e6c194d4a
commit 6f1cecd86f
1 changed files with 6 additions and 6 deletions

View File

@ -42,6 +42,12 @@ protected OnlineViewContainer(string placeholderMessage)
}; };
} }
protected override void LoadComplete()
{
API?.Register(this);
base.LoadComplete();
}
public virtual void APIStateChanged(IAPIProvider api, APIState state) public virtual void APIStateChanged(IAPIProvider api, APIState state)
{ {
switch (state) switch (state)
@ -78,12 +84,6 @@ public virtual void APIStateChanged(IAPIProvider api, APIState state)
/// </summary> /// </summary>
protected virtual void PopContentIn(Drawable content) => content.FadeIn(TRANSFORM_TIME, Easing.OutQuint); protected virtual void PopContentIn(Drawable content) => content.FadeIn(TRANSFORM_TIME, Easing.OutQuint);
protected override void LoadComplete()
{
API?.Register(this);
base.LoadComplete();
}
protected override void Dispose(bool isDisposing) protected override void Dispose(bool isDisposing)
{ {
API?.Unregister(this); API?.Unregister(this);