1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +08:00

Fix warning text of bg source setting not being updated when user with supporter signs in/out

This commit is contained in:
Joseph Madamba 2021-05-05 22:43:16 -07:00
parent bb496d05f7
commit d4658c609b

View File

@ -57,11 +57,11 @@ namespace osu.Game.Overlays.Settings.Sections.UserInterface
{
base.LoadComplete();
backgroundSourceDropdown.Current.BindValueChanged(source =>
user.BindValueChanged(u =>
{
const string not_supporter_note = "Changes to this setting will only apply with an active osu!supporter tag.";
backgroundSourceDropdown.WarningText = user.Value?.IsSupporter != true ? not_supporter_note : string.Empty;
backgroundSourceDropdown.WarningText = u.NewValue?.IsSupporter != true ? not_supporter_note : string.Empty;
}, true);
}
}