src/Builder4/PopoverProperty.bjs
authorAlan <alan@roojs.com>
Thu, 9 Jun 2022 06:02:34 +0000 (14:02 +0800)
committerAlan <alan@roojs.com>
Thu, 9 Jun 2022 06:02:34 +0000 (14:02 +0800)
src/Builder4/PopoverProperty.vala

src/Builder4/PopoverProperty.bjs
src/Builder4/PopoverProperty.vala

index 84a2a84..5b22f9c 100644 (file)
            "\t\treturn;\t",
            "\t}",
            "\t// add it, ",
+           "\tvar prop = this.prop;",
            "\tthis.node.set_prop(prop);",
            "\tthis.is_new = false;\t",
            "\t_this.mainwindow.windowstate.left_props.reload();",
            "\t// hide self",
            "\t_this.prop = false; // skip checks..",
            "\t_this.el.hide();",
-           "\t",
+           "",
+           "",
            "\t// trigger editing of property.",
+           "\t_this.mainwindow.windowstate.left_props.addProp(prop);\t\t",
            "\t",
            "",
            "}"
index 761d55a..6276852 100644 (file)
@@ -732,6 +732,7 @@ public class Xcls_PopoverProperty : Object
                        return; 
                }
                // add it, 
+               var prop = this.prop;
                this.node.set_prop(prop);
                this.is_new = false;    
                _this.mainwindow.windowstate.left_props.reload();
@@ -740,8 +741,10 @@ public class Xcls_PopoverProperty : Object
                // hide self
                _this.prop = false; // skip checks..
                _this.el.hide();
-               
+            
+            
                // trigger editing of property.
+               _this.mainwindow.windowstate.left_props.addProp(prop);          
                
             
             });