diff options
Diffstat (limited to 'src/ui/DeleteLater.cpp')
-rw-r--r-- | src/ui/DeleteLater.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/DeleteLater.cpp b/src/ui/DeleteLater.cpp new file mode 100644 index 00000000..8a40642f --- /dev/null +++ b/src/ui/DeleteLater.cpp @@ -0,0 +1,12 @@ +#include "cru/ui/DeleteLater.h" + +#include "Helper.h" +#include "cru/platform/gui/UiApplication.h" + +namespace cru::ui { +DeleteLaterImpl::~DeleteLaterImpl() {} + +void DeleteLaterImpl::DeleteLater() { + GetUiApplication()->SetImmediate([this] { delete this; }); +} +} // namespace cru::ui |