mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Move token request construction to LoadAsyncComplete to better allow DI usage
This commit is contained in:
@ -28,11 +28,11 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
protected override void LoadAsyncComplete()
|
||||
{
|
||||
Token = null;
|
||||
base.LoadAsyncComplete();
|
||||
|
||||
// Token request construction should happen post-load to allow derived classes to potentially prepare DI backings that are used to create the request.
|
||||
bool failed = false;
|
||||
|
||||
var req = CreateTokenRequestRequest();
|
||||
|
Reference in New Issue
Block a user