1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 01:32:55 +08:00

Merge pull request #31414 from frenzibyte/fix-display

Fix mobile release dialog obstructed by the software keyboard
This commit is contained in:
Dean Herbert 2025-01-05 00:37:29 +09:00 committed by GitHub
commit d6e73d75d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -297,15 +297,6 @@ namespace osu.Game.Screens.Menu
private bool onLogoClick(Func<bool> originalAction)
{
if (!api.IsLoggedIn || api.State.Value == APIState.RequiresSecondFactorAuth)
{
if (!loginDisplayed.Value)
{
Scheduler.AddDelayed(() => login?.Show(), 500);
loginDisplayed.Value = true;
}
}
if (showMobileDisclaimer.Value)
{
mobileDisclaimerSchedule?.Cancel();
@ -314,13 +305,27 @@ namespace osu.Game.Screens.Menu
dialogOverlay.Push(new MobileDisclaimerDialog(() =>
{
showMobileDisclaimer.Value = false;
displayLoginIfApplicable();
}));
}, 500);
}
else
displayLoginIfApplicable();
return originalAction.Invoke();
}
private void displayLoginIfApplicable()
{
if (loginDisplayed.Value) return;
if (!api.IsLoggedIn || api.State.Value == APIState.RequiresSecondFactorAuth)
{
Scheduler.AddDelayed(() => login?.Show(), 500);
loginDisplayed.Value = true;
}
}
protected override void LogoSuspending(OsuLogo logo)
{
var seq = logo.FadeOut(300, Easing.InSine)