From: sunghyun kim Date: Thu, 27 Apr 2023 04:40:39 +0000 (+0900) Subject: Do not reload the widget automatically during widget creation. X-Git-Tag: accepted/tizen/unified/20230504.054938^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F74%2F292074%2F1;p=platform%2Fcore%2Fuifw%2Fwidget-viewer-dali.git Do not reload the widget automatically during widget creation. before widget creation, the function of reloading the widget doesn't work. in this case, the user needs to reload the widget manually so widgetViewer doesn't perform reload function automatically. Change-Id: Iecda82a60da4ed622bea02f7665c8db7e6c8942c --- diff --git a/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp b/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp index 249a934..1f25c61 100644 --- a/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp +++ b/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp @@ -1759,6 +1759,12 @@ bool WidgetView::LaunchWidget() void WidgetView::ReloadWidget() { + if(!mCreated) + { + DALI_LOG_ERROR("Skip Reload, we can't use reload before widget(%s) is created \n", mWidgetId.c_str()); + return; + } + std::string text; text = GetContentInfo(); if( text == mContentInfo )