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

Fix login error text adding unnecessary spacing

This commit is contained in:
Joseph Madamba 2023-06-25 11:47:32 -07:00
parent 442fda3598
commit 4a3b8c405e
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76

View File

@ -73,6 +73,7 @@ namespace osu.Game.Overlays.Login
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Alpha = 0,
}, },
new SettingsCheckbox new SettingsCheckbox
{ {
@ -128,7 +129,10 @@ namespace osu.Game.Overlays.Login
password.OnCommit += (_, _) => performLogin(); password.OnCommit += (_, _) => performLogin();
if (api.LastLoginError?.Message is string error) if (api.LastLoginError?.Message is string error)
{
errorText.Alpha = 1;
errorText.AddErrors(new[] { error }); errorText.AddErrors(new[] { error });
}
} }
public override bool AcceptsFocus => true; public override bool AcceptsFocus => true;