mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:07:52 +08:00
Also change icon and tooltip text when pending 2FA
This commit is contained in:
parent
bf3746daa8
commit
2ff46daf5e
@ -19,6 +19,11 @@ namespace osu.Game.Localisation
|
||||
/// </summary>
|
||||
public static LocalisableString Connecting => new TranslatableString(getKey(@"connecting"), @"Connecting...");
|
||||
|
||||
/// <summary>
|
||||
/// "Verification required"
|
||||
/// </summary>
|
||||
public static LocalisableString VerificationRequired => new TranslatableString(getKey(@"verification_required"), @"Verification required");
|
||||
|
||||
/// <summary>
|
||||
/// "home"
|
||||
/// </summary>
|
||||
|
@ -99,7 +99,6 @@ namespace osu.Game.Overlays.Toolbar
|
||||
|
||||
switch (state.NewValue)
|
||||
{
|
||||
case APIState.RequiresSecondFactorAuth:
|
||||
case APIState.Connecting:
|
||||
TooltipText = ToolbarStrings.Connecting;
|
||||
spinner.Show();
|
||||
@ -108,6 +107,13 @@ namespace osu.Game.Overlays.Toolbar
|
||||
case APIState.Failing:
|
||||
TooltipText = ToolbarStrings.AttemptingToReconnect;
|
||||
spinner.Show();
|
||||
failingIcon.Icon = FontAwesome.Solid.ExclamationTriangle;
|
||||
break;
|
||||
|
||||
case APIState.RequiresSecondFactorAuth:
|
||||
TooltipText = ToolbarStrings.VerificationRequired;
|
||||
spinner.Show();
|
||||
failingIcon.Icon = FontAwesome.Solid.Key;
|
||||
break;
|
||||
|
||||
case APIState.Offline:
|
||||
|
Loading…
Reference in New Issue
Block a user