mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 13:22:55 +08:00
Fix song select background not showing in multiplayer/playlists
The screen was now being loaded against incorrect dependencies. I'm not sure why I thought it wasn't possible to just do the `Push` in `LoadComplete` as it seems to work without issue this time... Closes #13974.
This commit is contained in:
parent
edce3e0efe
commit
ec3ce57bb9
@ -162,10 +162,6 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
ongoingOperationTracker,
|
||||
}
|
||||
};
|
||||
|
||||
// a lot of the functionality in this class depends on loungeSubScreen being in a ready to go state.
|
||||
// as such, we intentionally load this inline so it is ready alongside this screen.
|
||||
LoadComponent(loungeSubScreen = CreateLounge());
|
||||
}
|
||||
|
||||
private void onlineStateChanged(ValueChangedEvent<APIState> state) => Schedule(() =>
|
||||
@ -184,7 +180,7 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
screenStack.ScreenPushed += screenPushed;
|
||||
screenStack.ScreenExited += screenExited;
|
||||
|
||||
screenStack.Push(loungeSubScreen);
|
||||
screenStack.Push(loungeSubScreen = CreateLounge());
|
||||
|
||||
apiState.BindTo(API.State);
|
||||
apiState.BindValueChanged(onlineStateChanged, true);
|
||||
|
Loading…
Reference in New Issue
Block a user