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:
parent
442fda3598
commit
4a3b8c405e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user