fix(Menu): properly reset selections when content is removed

This commit is contained in:
Raphael Coeffic
2022-10-03 12:41:59 +10:00
committed by Peter Feerick
parent ce9c5a302a
commit d2676abc61
+1
View File
@@ -126,6 +126,7 @@ void MenuBody::removeLines()
{
lines.clear();
setRowCount(0);
selectedIndex = 0;
// reset vertical scroll
lv_obj_scroll_to_y(lvobj, 0, LV_ANIM_OFF);