Cleanup
This commit is contained in:
@@ -185,8 +185,7 @@ bool SwitchChoice::onTouchStart(coord_t x, coord_t y)
|
|||||||
bool SwitchChoice::onTouchEnd(coord_t x, coord_t y)
|
bool SwitchChoice::onTouchEnd(coord_t x, coord_t y)
|
||||||
{
|
{
|
||||||
setFocus(SET_FOCUS_DEFAULT);
|
setFocus(SET_FOCUS_DEFAULT);
|
||||||
|
|
||||||
|
|
||||||
if(duration10ms != 1) {
|
if(duration10ms != 1) {
|
||||||
setEditMode(true);
|
setEditMode(true);
|
||||||
openMenu();
|
openMenu();
|
||||||
@@ -194,6 +193,6 @@ bool SwitchChoice::onTouchEnd(coord_t x, coord_t y)
|
|||||||
|
|
||||||
duration10ms = 0;
|
duration10ms = 0;
|
||||||
|
|
||||||
return true; // FormField::onTouchEnd(x, y);
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -65,7 +65,6 @@ class SwitchChoice : public FormField
|
|||||||
inline bool isLongPress(tmr10ms_t longPressDuration = LONG_PRESS_10MS);
|
inline bool isLongPress(tmr10ms_t longPressDuration = LONG_PRESS_10MS);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void setAvailableHandler(std::function<bool(int)> handler)
|
void setAvailableHandler(std::function<bool(int)> handler)
|
||||||
{
|
{
|
||||||
isValueAvailable = std::move(handler);
|
isValueAvailable = std::move(handler);
|
||||||
|
|||||||
Reference in New Issue
Block a user