Don't dirty heap if the action deletes the button
@@ -684,8 +684,10 @@ static lv_res_t lv_btn_signal(lv_obj_t * btn, lv_signal_t sign, void * param)
res = ext->actions[LV_BTN_ACTION_CLICK](btn);
}
}
+ if( LV_RES_INV != res ) {
ext->long_pr_action_executed = 0;
}
+ }
} else if(sign == LV_SIGNAL_CLEANUP) {
#if USE_LV_ANIMATION && LV_BTN_INK_EFFECT
if(btn == ink_obj) {
