1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 09:32:45 +00:00

Set Element state in Element::create

This commit is contained in:
uramer 2024-03-09 22:27:10 +01:00
parent 61d01f3b62
commit 0f60052bb8

View File

@ -278,6 +278,7 @@ namespace LuaUi
mRoot = createWidget(layout(), true, depth);
mLayer = setLayer(mRoot, layout());
updateRootCoord(mRoot);
mState = Created;
}
}
@ -304,8 +305,8 @@ namespace LuaUi
}
mLayer = setLayer(mRoot, layout());
updateRootCoord(mRoot);
mState = Created;
}
mState = Created;
}
void Element::destroy()