mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
fix(ui): add missing visible check in CSimpleFrame::PostLoadXML
This commit is contained in:
parent
45838c6897
commit
cce548755a
@ -300,11 +300,10 @@ void CSimpleFrame::PostLoadXML(XMLNode* node, CStatus* status) {
|
||||
titleRegion->SetDeferredResize(0);
|
||||
}
|
||||
|
||||
CSimpleRegion* region = this->m_regions.Head();
|
||||
|
||||
while (region) {
|
||||
region->SetDeferredResize(0);
|
||||
region = region->m_regionLink.Next();
|
||||
for (auto region = this->m_regions.Head(); region; region = this->m_regions.Next(region)) {
|
||||
if (region->m_visible) {
|
||||
region->SetDeferredResize(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user