diff options
author | Aylur <[email protected]> | 2024-10-09 03:08:51 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-10-09 03:08:51 +0000 |
commit | d6cbbdfb3f6e81c8265af36c88fd9547d93f9cbd (patch) | |
tree | a4f018b52cde3e4b10967f22d05861c4d4b9c73d /core/gjs/src | |
parent | 2fa83eb09047e603835c462ff0d8a04eba016807 (diff) |
core: implement generic no_implicit_destroy prop
Diffstat (limited to 'core/gjs/src')
-rw-r--r-- | core/gjs/src/astalify.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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() } } |