fix slide_menu_on_event

This commit is contained in:
xianjimli 2019-05-07 14:02:49 +08:00
parent 93f2e47b17
commit f72917d9d9

View File

@ -517,7 +517,7 @@ static ret_t slide_menu_on_event(widget_t* widget, event_t* e) {
return_value_if_fail(widget != NULL && slide_menu != NULL, RET_BAD_PARAMS); return_value_if_fail(widget != NULL && slide_menu != NULL, RET_BAD_PARAMS);
if (slide_menu->wa != NULL) { if (slide_menu->wa != NULL) {
return RET_OK; return RET_STOP;
} }
switch (type) { switch (type) {
@ -553,7 +553,7 @@ static ret_t slide_menu_on_event(widget_t* widget, event_t* e) {
break; break;
} }
return RET_OK; return RET_STOP;
} }
TK_DECL_VTABLE(slide_menu) = {.size = sizeof(slide_menu_t), TK_DECL_VTABLE(slide_menu) = {.size = sizeof(slide_menu_t),