mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 11:43:22 +08:00
Reduce nesting slightly
This commit is contained in:
parent
3fc86f60ee
commit
37da72d764
@ -317,15 +317,14 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
private void displayLoginIfApplicable()
|
||||
{
|
||||
if (loginDisplayed.Value) return;
|
||||
|
||||
if (!api.IsLoggedIn || api.State.Value == APIState.RequiresSecondFactorAuth)
|
||||
{
|
||||
if (!loginDisplayed.Value)
|
||||
{
|
||||
Scheduler.AddDelayed(() => login?.Show(), 500);
|
||||
loginDisplayed.Value = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected override void LogoSuspending(OsuLogo logo)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user