[Menu] select the first element by default, even if hardware touch is supported

This commit is contained in:
Raphael Coeffic
2021-06-06 12:21:50 +02:00
parent 9962dd0092
commit 880a514f18
-4
View File
@@ -122,11 +122,7 @@ class MenuBody: public Window
protected:
std::vector<MenuLine> lines;
#if defined(HARDWARE_TOUCH)
int selectedIndex = -1;
#else
int selectedIndex = 0;
#endif
std::function<void()> onCancel;
inline Menu * getParentMenu();