mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:07:52 +08:00
Show "failing" icon on user panel when 2FA prompt is present
This gives the user a chance to know it's required.
This commit is contained in:
parent
7cdedfb6ca
commit
563f4a26b1
@ -95,7 +95,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
|
||||
private void onlineStateChanged(ValueChangedEvent<APIState> state) => Schedule(() =>
|
||||
{
|
||||
failingIcon.FadeTo(state.NewValue == APIState.Failing ? 1 : 0, 200, Easing.OutQuint);
|
||||
failingIcon.FadeTo(state.NewValue == APIState.Failing || state.NewValue == APIState.RequiresSecondFactorAuth ? 1 : 0, 200, Easing.OutQuint);
|
||||
|
||||
switch (state.NewValue)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user