[NUI] Add widget list for keeping widget instance
authorsunghyun kim <scholb.kim@samsung.com>
Wed, 18 Oct 2023 07:14:53 +0000 (16:14 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Wed, 18 Oct 2023 07:28:40 +0000 (16:28 +0900)
same to this patch
https://github.com/Samsung/TizenFX/pull/5583

src/Tizen.NUI/src/public/Widget/Widget.cs

index a10d238..ce65cb5 100755 (executable)
@@ -46,6 +46,8 @@ namespace Tizen.NUI
             widgetImpl.WidgetInstanceResumed += OnWidgetInstanceResumed;
             widgetImpl.WidgetInstanceResized += OnWidgetInstanceResized;
             widgetImpl.WidgetInstanceUpdated += OnWidgetInstanceUpdated;
+
+            (WidgetApplication.Instance as WidgetApplication)?.AddWidgetInstance(this);
         }
 
         internal Widget(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)