src/Builder4/PopoverProperty.bjs
authorAlan <alan@roojs.com>
Thu, 9 Jun 2022 05:50:25 +0000 (13:50 +0800)
committerAlan <alan@roojs.com>
Thu, 9 Jun 2022 05:50:25 +0000 (13:50 +0800)
src/Builder4/PopoverProperty.vala

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

index bbd7c8b..3a4657b 100644 (file)
        "xtype" : "Label",
        "| void setError" : [
         "(string err) {",
-        "\tif (err = \"\") {",
-        "\t\t_this.el.hide();",
+        "\tif (err == \"\") {",
+        "\t\tthis.el.hide();",
         "\t} else {",
         "\t\tthis.el show();",
         "\t\t",
index 099409c..bdc801a 100644 (file)
@@ -586,8 +586,8 @@ public class Xcls_PopoverProperty : Object
 
         // user defined functions
         public void setError (string err) {
-               if (err = "") {
-                       _this.el.hide();
+               if (err == "") {
+                       this.el.hide();
                } else {
                        this.el show();