mirror of
https://github.com/ppy/osu.git
synced 2025-03-18 04:49:34 +08:00
Fix backwards warning text presence check
This commit is contained in:
parent
5f1948d040
commit
143b8df1b2
@ -65,7 +65,7 @@ namespace osu.Game.Overlays.Settings
|
||||
{
|
||||
set
|
||||
{
|
||||
bool hasValue = string.IsNullOrWhiteSpace(value.ToString());
|
||||
bool hasValue = !string.IsNullOrWhiteSpace(value.ToString());
|
||||
|
||||
if (warningText == null)
|
||||
{
|
||||
@ -76,7 +76,7 @@ namespace osu.Game.Overlays.Settings
|
||||
FlowContent.Add(warningText = new SettingsNoticeText(colours) { Margin = new MarginPadding { Bottom = 5 } });
|
||||
}
|
||||
|
||||
warningText.Alpha = hasValue ? 0 : 1;
|
||||
warningText.Alpha = hasValue ? 1 : 0;
|
||||
warningText.Text = value.ToString(); // TODO: Remove ToString() call after TextFlowContainer supports localisation (see https://github.com/ppy/osu-framework/issues/4636).
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user