From 91735cdbcf455f151a5751e4570885bf6c42a634 Mon Sep 17 00:00:00 2001 From: sunghyun kim Date: Thu, 27 Apr 2023 13:40:39 +0900 Subject: [PATCH] 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 --- .../internal/widget_view/widget_view_impl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 ) -- 2.34.1