fix(color): potential crash when closing popup menu with a menu toolbar (#7838)

This commit is contained in:
philmoz
2026-09-28 13:57:10 +10:00
committed by GitHub
parent a197c43b51
commit dd613ac895
@@ -59,6 +59,10 @@ MenuToolbarButton::MenuToolbarButton(Window* parent, const rect_t& rect,
auto label = etx_label_create(lvobj);
lv_label_set_text(label, picto);
lv_obj_center(label);
onClosing([=]() {
lv_group_remove_obj(lvobj);
});
}
MenuToolbar::MenuToolbar(Choice* choice, Menu* menu, const int columns) :