fix(indev): don't reset all indevs if an object is set disabled (#7216)

This commit is contained in:
Toni Neubert 2024-11-12 09:38:28 +01:00 committed by GitHub
parent 31226b9b95
commit abdcc04f09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -309,11 +309,6 @@ void lv_obj_add_state(lv_obj_t * obj, lv_state_t state)
lv_state_t new_state = obj->state | state;
if(obj->state != new_state) {
if(new_state & ~obj->state & LV_STATE_DISABLED) {
lv_indev_reset(NULL, obj);
}
update_obj_state(obj, new_state);
}
}