From 880a514f1873dbb87e544db88fa3f81e36d133ec Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sun, 6 Jun 2021 12:21:50 +0200 Subject: [PATCH] [Menu] select the first element by default, even if hardware touch is supported --- radio/src/thirdparty/libopenui/src/menu.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/radio/src/thirdparty/libopenui/src/menu.h b/radio/src/thirdparty/libopenui/src/menu.h index b93486170..da61996f0 100644 --- a/radio/src/thirdparty/libopenui/src/menu.h +++ b/radio/src/thirdparty/libopenui/src/menu.h @@ -122,11 +122,7 @@ class MenuBody: public Window protected: std::vector lines; -#if defined(HARDWARE_TOUCH) - int selectedIndex = -1; -#else int selectedIndex = 0; -#endif std::function onCancel; inline Menu * getParentMenu();