mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09: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
|
set
|
||||||
{
|
{
|
||||||
bool hasValue = string.IsNullOrWhiteSpace(value.ToString());
|
bool hasValue = !string.IsNullOrWhiteSpace(value.ToString());
|
||||||
|
|
||||||
if (warningText == null)
|
if (warningText == null)
|
||||||
{
|
{
|
||||||
@ -76,7 +76,7 @@ namespace osu.Game.Overlays.Settings
|
|||||||
FlowContent.Add(warningText = new SettingsNoticeText(colours) { Margin = new MarginPadding { Bottom = 5 } });
|
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).
|
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