From d6cbbdfb3f6e81c8265af36c88fd9547d93f9cbd Mon Sep 17 00:00:00 2001 From: Aylur Date: Wed, 9 Oct 2024 03:08:51 +0000 Subject: core: implement generic no_implicit_destroy prop --- core/gjs/src/astalify.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/gjs/src') diff --git a/core/gjs/src/astalify.ts b/core/gjs/src/astalify.ts index 76c2081..85d7531 100644 --- a/core/gjs/src/astalify.ts +++ b/core/gjs/src/astalify.ts @@ -77,14 +77,14 @@ export default function astalify< const ch = this.get_child() if (ch) this.remove(ch) - // if (ch && !children.includes(ch) && !this.noImplicitDestroy) - // ch?.destroy() + if (ch && !children.includes(ch) && !this.noImplicitDestroy) + ch?.destroy() } else if (this instanceof Gtk.Container) { for (const ch of this.get_children()) { this.remove(ch) - // if (!children.includes(ch) && !this.noImplicitDestroy) - // ch?.destroy() + if (!children.includes(ch) && !this.noImplicitDestroy) + ch?.destroy() } } -- cgit v1.2.3