diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-16 17:48:39 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-16 17:48:39 +0800 |
| commit | b68f9f52a3ecdd8e379dd60ac1c1366e76695464 (patch) | |
| tree | 3b863e4f68ffcc0e8556b68ae3176043393f558e /include/cru/ui/controls/TextHostControlService.h | |
| parent | 1ce8866e5b88da6cc4b7cd4d3440f7d70c7be5db (diff) | |
| download | cru-b68f9f52a3ecdd8e379dd60ac1c1366e76695464.tar.gz cru-b68f9f52a3ecdd8e379dd60ac1c1366e76695464.tar.bz2 cru-b68f9f52a3ecdd8e379dd60ac1c1366e76695464.zip | |
Fix delete later related things.
Diffstat (limited to 'include/cru/ui/controls/TextHostControlService.h')
| -rw-r--r-- | include/cru/ui/controls/TextHostControlService.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<components::PopupMenu> context_menu_; + DeleteLaterPtr<components::PopupMenu> context_menu_; }; } // namespace cru::ui::controls |
