Choice can be disabled

This commit is contained in:
Bertrand Songis
2020-05-26 10:22:53 +02:00
parent 93056a281b
commit e4b19a2762
+4 -2
View File
@@ -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