Skip to content

Commit

Permalink
widget_clone trigger EVT_WIDGET_LOAD
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Jan 27, 2025
1 parent dcc3ae1 commit a02a7ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/widget.c
Original file line number Diff line number Diff line change
Expand Up @@ -3959,7 +3959,7 @@ widget_t* widget_clone(widget_t* widget, widget_t* parent) {

clone->loading = TRUE;
widget_copy(clone, widget);
widget_dispatch_simple_event(widget, EVT_WIDGET_LOAD);
widget_dispatch_simple_event(clone, EVT_WIDGET_LOAD);
clone->loading = FALSE;

WIDGET_FOR_EACH_CHILD_BEGIN(widget, iter, i)
Expand Down

0 comments on commit a02a7ed

Please sign in to comment.