1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 17:27:24 +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:
Dean Herbert 2024-02-01 21:10:37 +09:00
parent 7cdedfb6ca
commit 563f4a26b1
No known key found for this signature in database

View File

@ -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)
{