diff --git a/script/ide/System/Windows/mcml/Elements/pe_if.lua b/script/ide/System/Windows/mcml/Elements/pe_if.lua index fafec5d8..6f35f5cb 100644 --- a/script/ide/System/Windows/mcml/Elements/pe_if.lua +++ b/script/ide/System/Windows/mcml/Elements/pe_if.lua @@ -15,9 +15,12 @@ function pe_if:LoadComponent(parentElem, parentLayout, style) local condition = self:GetAttributeWithCode("condition", nil, true); self.isConditionTrue = (condition==true or condition=="true"); if (self.isConditionTrue) then + self:show(); for childnode in self:next() do childnode:LoadComponent(parentElem, parentLayout, style); end + else + self:hide(); end end