fix(window): fix crash in case LVGL parent is NULL

This commit is contained in:
raphaelcoeffic
2022-11-15 08:41:27 +01:00
parent a08ccd00aa
commit 5a81a22514
+1 -1
View File
@@ -513,7 +513,7 @@ void Window::paintChildren(BitmapBuffer * dc, std::list<Window *>::iterator it)
void Window::bringToTop()
{
attach(parent); // does a detach + attach
if (lvobj) lv_obj_move_foreground(lvobj);
if (lvobj && lv_obj_get_parent(lvobj)) lv_obj_move_foreground(lvobj);
}
void Window::checkEvents()