Don't dirty heap if the action deletes the button
This commit is contained in:
@@ -684,7 +684,9 @@ 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);
|
||||
}
|
||||
}
|
||||
ext->long_pr_action_executed = 0;
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user