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/6.5/unified/20230517.090740^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_6.5_unified;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 c174d8a..26a16a8 100644 --- a/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp +++ b/widget_viewer_dali/internal/widget_view/widget_view_impl.cpp @@ -1721,6 +1721,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 )