fix(ui): add missing linked check to CLayoutFrame::Resize

This commit is contained in:
fallenoak 2025-12-01 22:18:14 -06:00
parent a9364386d8
commit 1457703d8c
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -625,7 +625,10 @@ void CLayoutFrame::RegisterResize(CLayoutFrame* frame, uint32_t dep) {
void CLayoutFrame::Resize(int32_t force) {
if (force && !(this->m_flags & 0x8) && this->OnFrameResize()) {
LayoutFrame::s_resizePendingList.UnlinkNode(this);
if (LayoutFrame::s_resizePendingList.IsLinked(this)) {
LayoutFrame::s_resizePendingList.UnlinkNode(this);
}
return;
}