mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Refactor settings item "warning" text to allow non-warning state
This commit is contained in:
@ -61,7 +61,10 @@ namespace osu.Game.Overlays.Settings.Sections.UserInterface
|
||||
|
||||
user.BindValueChanged(u =>
|
||||
{
|
||||
backgroundSourceDropdown.WarningText = u.NewValue?.IsSupporter != true ? UserInterfaceStrings.NotSupporterNote : default;
|
||||
if (u.NewValue?.IsSupporter != true)
|
||||
backgroundSourceDropdown.SetWarningText(UserInterfaceStrings.NotSupporterNote);
|
||||
else
|
||||
backgroundSourceDropdown.ClearWarningText();
|
||||
}, true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user