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
2 changed files with 2 additions and 2 deletions

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