mark all components to be updated during initialization

This commit is contained in:
jacekpoz 2024-09-09 23:07:46 +02:00
parent 7952918cdb
commit 51a16fcec3
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -188,8 +188,16 @@ void component(PtkHandle c) {
}) })
} }
void init_component(PtkHandle c) {
PTK_LIST_SET(bool, m_update, c->id, true);
PTK_LIST_FOR_EACH(PtkHandle, c->children, child, {
init_component(child);
})
}
void vk_init_components(PtkHandle root) { void vk_init_components(PtkHandle root) {
m_root_component = root; m_root_component = root;
init_component(root);
vk_update_components(); vk_update_components();
} }