fix(ui): add missing visible check in CSimpleFrame::PostLoadXML

This commit is contained in:
fallenoak 2025-12-04 21:46:26 -06:00
parent 45838c6897
commit cce548755a
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -300,11 +300,10 @@ void CSimpleFrame::PostLoadXML(XMLNode* node, CStatus* status) {
titleRegion->SetDeferredResize(0); titleRegion->SetDeferredResize(0);
} }
CSimpleRegion* region = this->m_regions.Head(); for (auto region = this->m_regions.Head(); region; region = this->m_regions.Next(region)) {
if (region->m_visible) {
while (region) { region->SetDeferredResize(0);
region->SetDeferredResize(0); }
region = region->m_regionLink.Next();
} }
} }