mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 16:37: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:
parent
bb496d05f7
commit
d4658c609b
@ -57,11 +57,11 @@ namespace osu.Game.Overlays.Settings.Sections.UserInterface
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
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.";
|
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);
|
}, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user