mirror of
https://github.com/ppy/osu
synced 2024-12-27 17:32:56 +00:00
Fix cases of multiple bdl methods
This commit is contained in:
parent
303975ccb1
commit
3fe6f77444
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user