window: allow for accessing LVGL obj / children in close handler

This commit is contained in:
Raphael Coeffic
2022-06-12 19:19:35 +02:00
parent 41ab90ad36
commit 7679077632
+4 -4
View File
@@ -321,16 +321,16 @@ void Window::deleteLater(bool detach, bool trash)
Window::trash.push_back(this);
}
if (closeHandler) {
closeHandler();
}
deleteChildren();
if (lvobj != nullptr) {
lv_obj_del(lvobj);
lvobj = nullptr;
}
if (closeHandler) {
closeHandler();
}
}
void Window::clear()