Skip to content

Commit

Permalink
improve remote ui service
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Dec 2, 2023
1 parent 350ab30 commit 3d3a8cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/remote_ui/service/remote_ui_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,8 @@ static ret_t remote_ui_service_on_event_func(void* ctx, event_t* e) {
value_t vv;
value_t* v = NULL;
prop_change_event_t* event = prop_change_event_cast(e);
object_default_t* obj = OBJECT_DEFAULT(e->target);
/*保持类型不变*/
if (obj != NULL && obj->keep_prop_type) {
tk_object_get_prop(OBJECT(obj), event->name, &vv);
if (tk_object_get_prop(OBJECT(e->target), event->name, &vv) == RET_OK) {
v = &vv;
} else {
v = (value_t*)(event->value);
Expand Down

0 comments on commit 3d3a8cb

Please sign in to comment.