Fix cases of multiple bdl methods

This commit is contained in:
Dean Herbert 2020-10-22 14:30:49 +09:00
parent 303975ccb1
commit 3fe6f77444
3 changed files with 3 additions and 16 deletions

View File

@ -54,11 +54,6 @@ namespace osu.Game.Online
apiState.BindValueChanged(onlineStateChanged, true);
}
[BackgroundDependencyLoader]
private void load()
{
}
private void onlineStateChanged(ValueChangedEvent<APIState> state) => Schedule(() =>
{
switch (state.NewValue)

View File

@ -40,11 +40,7 @@ namespace osu.Game.Overlays
{
apiState.BindTo(api.State);
apiState.BindValueChanged(onlineStateChanged, true);
}
[BackgroundDependencyLoader]
private void load()
{
Children = new Drawable[]
{
new Box

View File

@ -49,16 +49,12 @@ namespace osu.Game.Overlays.Toolbar
});
}
[BackgroundDependencyLoader]
private void load()
{
apiState.BindTo(api.State);
apiState.BindValueChanged(onlineStateChanged, true);
}
[BackgroundDependencyLoader(true)]
private void load(LoginOverlay login)
{
apiState.BindTo(api.State);
apiState.BindValueChanged(onlineStateChanged, true);
StateContainer = login;
}