Check hasp_local_style_attr last

This commit is contained in:
fvanroie 2021-05-18 00:16:51 +02:00
parent 968a78f3a3
commit b926e984e3

View File

@ -1971,13 +1971,7 @@ void hasp_process_obj_attribute(lv_obj_t* obj, const char* attribute, const char
break;
default: {
bool result;
hasp_local_style_attr(obj, attribute, attr_hash, payload, update, result);
if(result) {
ret = ATTR_TYPE_METHOD_OK;
} else {
ret = ATTR_NOT_FOUND;
}
break; // not found
}
}
@ -2017,6 +2011,16 @@ void hasp_process_obj_attribute(lv_obj_t* obj, const char* attribute, const char
}
}
if(ret == ATTR_NOT_FOUND) {
bool result;
hasp_local_style_attr(obj, attribute, attr_hash, payload, update, result);
if(result) {
ret = ATTR_TYPE_METHOD_OK;
} else {
ret = ATTR_NOT_FOUND;
}
}
// Positive return codes have returned a value, negative are warnings
if(update && ret > 0) return; // done