mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 19:22:58 +08: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.";
|
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);
|
}, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ namespace osu.Game.Overlays.Settings
|
|||||||
{
|
{
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
noteText.Alpha = 1;
|
noteText.Alpha = string.IsNullOrWhiteSpace(value) ? 0 : 1;
|
||||||
noteText.Text = value;
|
noteText.Text = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user