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:
Joseph Madamba 2021-05-04 14:02:12 -07:00 committed by GitHub
parent a584213002
commit 23b9d8c260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -67,7 +67,7 @@ namespace osu.Game.Overlays.Settings
{
set
{
noteText.Alpha = 1;
noteText.Alpha = string.IsNullOrWhiteSpace(value) ? 0 : 1;
noteText.Text = value;
}
}