From b68f9f52a3ecdd8e379dd60ac1c1366e76695464 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Sun, 16 Nov 2025 17:48:39 +0800 Subject: Fix delete later related things. --- include/cru/ui/controls/TextHostControlService.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/cru/ui/controls/TextHostControlService.h') diff --git a/include/cru/ui/controls/TextHostControlService.h b/include/cru/ui/controls/TextHostControlService.h index e1586e66..454be09b 100644 --- a/include/cru/ui/controls/TextHostControlService.h +++ b/include/cru/ui/controls/TextHostControlService.h @@ -2,6 +2,7 @@ #include "../render/TextRenderObject.h" #include "cru/platform/gui/InputMethod.h" #include "cru/platform/gui/UiApplication.h" +#include "cru/ui/DeleteLater.h" #include "cru/ui/controls/Control.h" #include "cru/ui/helper/ShortcutHub.h" @@ -205,7 +206,6 @@ class CRU_UI_API TextHostControlService : public Object { // true if left mouse is down and selecting bool mouse_move_selecting_ = false; - bool context_menu_dirty_ = true; - std::unique_ptr context_menu_; + DeleteLaterPtr context_menu_; }; } // namespace cru::ui::controls -- cgit v1.2.3