From e896f3d39538d2aa5bf0aa5f8fb7eaeb3c1bde5b Mon Sep 17 00:00:00 2001 From: sunghyun kim Date: Wed, 18 Oct 2023 16:14:53 +0900 Subject: [PATCH] [NUI] Add widget list for keeping widget instance same to this patch https://github.com/Samsung/TizenFX/pull/5583 --- src/Tizen.NUI/src/public/Widget/Widget.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tizen.NUI/src/public/Widget/Widget.cs b/src/Tizen.NUI/src/public/Widget/Widget.cs index a10d2387d34..ce65cb5cf79 100755 --- a/src/Tizen.NUI/src/public/Widget/Widget.cs +++ b/src/Tizen.NUI/src/public/Widget/Widget.cs @@ -46,6 +46,8 @@ internal Widget(WidgetImpl widgetImpl, bool swigCMemOwn) : this(Interop.Widget.N 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)