Select the first element by default, even if hardware touch is supported

Resolves #57
This commit is contained in:
Raphael Coeffic
2021-06-07 08:49:43 +02:00
committed by Raphael Coeffic
parent ea9207bfb8
commit 65ce8b4602
3 changed files with 1 additions and 9 deletions
-4
View File
@@ -76,11 +76,7 @@ void SourceChoice::fillMenu(Menu * menu, const std::function<bool(int16_t)> & fi
{
auto value = getValue();
int count = 0;
#if defined(HARDWARE_TOUCH)
int current = -1;
#else
int current = 0;
#endif
menu->removeLines();
-4
View File
@@ -60,11 +60,7 @@ void SwitchChoice::fillMenu(Menu * menu, std::function<bool(int16_t)> filter)
{
auto value = getValue();
int count = 0;
#if defined(HARDWARE_TOUCH)
int current = -1;
#else
int current = 0;
#endif
menu->removeLines();