mirror of https://github.com/ppy/osu
Fix cases of multiple bdl methods
This commit is contained in:
parent
303975ccb1
commit
3fe6f77444
|
@ -54,11 +54,6 @@ private void load(IAPIProvider api)
|
|||
apiState.BindValueChanged(onlineStateChanged, true);
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
}
|
||||
|
||||
private void onlineStateChanged(ValueChangedEvent<APIState> state) => Schedule(() =>
|
||||
{
|
||||
switch (state.NewValue)
|
||||
|
|
|
@ -40,11 +40,7 @@ private void load(IAPIProvider api)
|
|||
{
|
||||
apiState.BindTo(api.State);
|
||||
apiState.BindValueChanged(onlineStateChanged, true);
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new Box
|
||||
|
|
|
@ -49,16 +49,12 @@ public ToolbarUserButton()
|
|||
});
|
||||
}
|
||||
|
||||
[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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue