1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

chore(indev): duplicate statements removed (#5194)

Co-authored-by: cnjhb <hikariz@qq.com>
This commit is contained in:
Neo Xu 2024-01-05 15:10:55 +08:00 committed by GitHub
parent 304a3c3573
commit f43f5f74b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -844,10 +844,6 @@ static void indev_encoder_proc(lv_indev_t * i, lv_indev_data_t * data)
data->enc_diff = 0;
}
/*Refresh the focused object. It might change due to lv_group_focus_prev/next*/
indev_obj_act = lv_group_get_focused(g);
if(indev_obj_act == NULL) return;
const bool is_disabled = lv_obj_has_state(indev_obj_act, LV_STATE_DISABLED);
/*Button press happened*/