SHA256
Fix Label Generation Condition
This commit is contained in:
1 file changed
+2
-2
@@ -1527,10 +1527,10 @@ internal static class RenderConfigWindow
|
||||
Action<bool>? onChanged = null,
|
||||
bool generateLabel = true)
|
||||
{
|
||||
if (generateLabel && !string.IsNullOrEmpty(labelKey))
|
||||
if (generateLabel)
|
||||
{
|
||||
var label = O5Factory.ControlText(ctx, colParent, 13f, noPad: true);
|
||||
label.text = LocalizationManager.Get(labelKey);
|
||||
label.text = string.IsNullOrEmpty(labelKey) ? "" : LocalizationManager.Get(labelKey);
|
||||
label.color = ctx.Theme.TextDim;
|
||||
LocalizedText.Bind(label, labelKey);
|
||||
|
||||
|
||||
Reference in new issue
Block a user