Fix Label Generation Condition

This commit is contained in:
copecone committed 2026-10-10 22:25:45 +09:00
1 parent b4c950c9f7
commit bfc79ee4d3
1 file changed
+2 -2
+2 -2
View File
@@ -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);