src/Builder4/PopoverFiles.bjs
authorAlan <alan@roojs.com>
Fri, 20 May 2022 06:58:31 +0000 (14:58 +0800)
committerAlan <alan@roojs.com>
Fri, 20 May 2022 06:58:31 +0000 (14:58 +0800)
src/Builder4/PopoverFiles.vala

src/Builder4/PopoverFiles.bjs
src/Builder4/PopoverFiles.vala

index f97e5ac..8d28299 100644 (file)
              "    // create a new file in project..",
              "    print(\"add file selected\\n\");",
              "    ",
-             "    if (this.project == null) {",
+             "    if (_this.project == null) {",
              "    \treturn;",
              "    }",
              "    ",
-             "    var f = JsRender.JsRender.factory(this.project.xtype,  this.project, \"\");",
+             "    var f = JsRender.JsRender.factory(_this.project.xtype,  _this.project, \"\");",
              "     _this.win.windowstate.file_details.show( f, this.el );",
              "",
              "}"
index 0bb4460..1abfe2a 100644 (file)
@@ -517,11 +517,11 @@ public class Xcls_PopoverFiles : Object
                 // create a new file in project..
                 print("add file selected\n");
                 
-                if (this.project == null) {
+                if (_this.project == null) {
                        return;
                 }
                 
-                var f = JsRender.JsRender.factory(this.project.xtype,  this.project, "");
+                var f = JsRender.JsRender.factory(_this.project.xtype,  _this.project, "");
                  _this.win.windowstate.file_details.show( f, this.el );
             
             });