From 2eb34dfc3dd3ca718da6ebf049886b4ae140b332 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Wed, 19 Nov 2025 02:59:30 +0800 Subject: Remove all children when control destroyed. --- include/cru/ui/controls/ControlHost.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/cru/ui/controls/ControlHost.h') diff --git a/include/cru/ui/controls/ControlHost.h b/include/cru/ui/controls/ControlHost.h index c67e8a72..a27be835 100644 --- a/include/cru/ui/controls/ControlHost.h +++ b/include/cru/ui/controls/ControlHost.h @@ -169,7 +169,8 @@ class CRU_UI_API ControlHost : public Object { } void UpdateCursor(); - void NotifyControlParentChange(Control* control, Control* old_parent, Control* new_parent); + void NotifyControlParentChange(Control* control, Control* old_parent, + Control* new_parent); private: int event_handling_count_; @@ -185,7 +186,6 @@ class CRU_UI_API ControlHost : public Object { bool layout_prefer_to_fill_window_; - platform::gui::TimerAutoCanceler repaint_schedule_canceler_; platform::gui::TimerAutoCanceler relayout_schedule_canceler_; }; } // namespace cru::ui::controls -- cgit v1.2.3