Choice can be disabled
This commit is contained in:
+4
-2
@@ -171,8 +171,10 @@ void Choice::openMenu()
|
|||||||
#if defined(HARDWARE_TOUCH)
|
#if defined(HARDWARE_TOUCH)
|
||||||
bool Choice::onTouchEnd(coord_t, coord_t)
|
bool Choice::onTouchEnd(coord_t, coord_t)
|
||||||
{
|
{
|
||||||
onKeyPress();
|
if (enabled) {
|
||||||
openMenu();
|
onKeyPress();
|
||||||
|
openMenu();
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user