Select the first element by default, even if hardware touch is supported
Resolves #57
This commit is contained in:
committed by
Raphael Coeffic
parent
ea9207bfb8
commit
65ce8b4602
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Vendored
+1
-1
Submodule radio/src/thirdparty/libopenui updated: 0d5b13c578...67c2027d32
Reference in New Issue
Block a user