aboutsummaryrefslogtreecommitdiff
path: root/src/ui/components/Component.cpp
blob: 77a659dc36a437a8d9e4d28dde75f67a3710b8f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "cru/ui/components/Component.h"

namespace cru::ui::components {
void Component::DeleteIfDeleteByParent(bool delete_later) {
  if (delete_by_parent_) {
    if (delete_later) {
      DeleteLater();
    } else {
      delete this;
    }
  }
}
}  // namespace cru::ui::components