mirror of
https://github.com/edubart/otclient.git
synced 2025-11-07 13:56:22 +01:00
optimize widget destruction
This commit is contained in:
@@ -74,6 +74,9 @@ bool UIGridLayout::internalUpdate()
|
||||
{
|
||||
bool changed = false;
|
||||
UIWidgetPtr parentWidget = getParentWidget();
|
||||
if(!parentWidget)
|
||||
return false;
|
||||
|
||||
UIWidgetList widgets = parentWidget->getChildren();
|
||||
|
||||
Rect clippingRect = parentWidget->getClippingRect();
|
||||
|
||||
Reference in New Issue
Block a user