Merge pull request #693 from joltwallet/dirty_heap
Don't dirty heap if the lv_btn action deletes the button obj
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(res != LV_RES_INV) {
|
||||
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