mirror of
https://github.com/ppy/osu
synced 2024-12-15 11:25:29 +00:00
Fix alpha not being zero when string is set to empty and use inequality on supporter condition
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
parent
a584213002
commit
23b9d8c260
@ -61,7 +61,7 @@ namespace osu.Game.Overlays.Settings.Sections.UserInterface
|
||||
{
|
||||
const string not_supporter_note = "Changes to this setting will only apply with an active osu!supporter tag.";
|
||||
|
||||
backgroundSourceDropdown.NoteText = user.Value?.IsSupporter == false ? not_supporter_note : string.Empty;
|
||||
backgroundSourceDropdown.NoteText = user.Value?.IsSupporter != true ? not_supporter_note : string.Empty;
|
||||
}, true);
|
||||
}
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ namespace osu.Game.Overlays.Settings
|
||||
{
|
||||
set
|
||||
{
|
||||
noteText.Alpha = 1;
|
||||
noteText.Alpha = string.IsNullOrWhiteSpace(value) ? 0 : 1;
|
||||
noteText.Text = value;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user