[Menu] select the first element by default, even if hardware touch is supported
This commit is contained in:
-4
@@ -122,11 +122,7 @@ class MenuBody: public Window
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::vector<MenuLine> lines;
|
std::vector<MenuLine> lines;
|
||||||
#if defined(HARDWARE_TOUCH)
|
|
||||||
int selectedIndex = -1;
|
|
||||||
#else
|
|
||||||
int selectedIndex = 0;
|
int selectedIndex = 0;
|
||||||
#endif
|
|
||||||
std::function<void()> onCancel;
|
std::function<void()> onCancel;
|
||||||
|
|
||||||
inline Menu * getParentMenu();
|
inline Menu * getParentMenu();
|
||||||
|
|||||||
Reference in New Issue
Block a user