1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-21 18:47:20 +08:00

Merge pull request #12696 from Joehuu/fix-bg-source-supp-text

Fix warning text of bg source setting not being updated when user with supporter signs in/out
This commit is contained in:
Dean Herbert 2021-05-06 16:28:30 +09:00 committed by GitHub
commit f1b79865bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}
}