src/Palete/Gtk.vala
authorAlan <alan@roojs.com>
Wed, 15 Jun 2022 08:22:18 +0000 (16:22 +0800)
committerAlan <alan@roojs.com>
Wed, 15 Jun 2022 08:22:18 +0000 (16:22 +0800)
src/Palete/Gtk.vala

index cd8ba01..d04912a 100644 (file)
@@ -713,10 +713,8 @@ namespace Palete {
                
                public override void on_child_added(JsRender.Node? parent,JsRender.Node child)
                {   
-                       if (parent == null) { //top ?? nothign to do?
-                               return;
-                       }
-                       if (!child.has("* prop")) { // child has a property - no need for child properties
+
+                       if (parent != null &&  !child.has("* prop")) { // child has a property - no need for child properties
                                 
                                if (this.child_defaults.has_key(parent.fqn())) {
                                        foreach(var k in this.child_defaults.get(parent.fqn())) {