new files need adding to full file list
authorAlan <alan@roojs.com>
Fri, 5 Jan 2024 07:56:19 +0000 (15:56 +0800)
committerAlan <alan@roojs.com>
Fri, 5 Jan 2024 07:56:19 +0000 (15:56 +0800)
src/Builder4/PopoverFileDetails.bjs
src/Builder4/PopoverFileDetails.vala
src/Project/Project.vala

index 6206dbf..bd2192f 100644 (file)
          "\t     ",
          "\t    return;",
          "\t}",
-         "\t// what does this do?",
-         "\t",
-         " ",
-         "\t/*",
-         "\tif (!isNew && this.file.name != _this.name.el.get_text()) {",
-         "\t    Xcls_StandardErrorDialog.singleton().show(",
-         "\t        this.el,",
-         "\t        \"Sorry changing names does not work yet. \"",
-         "\t    );",
-         "\t     ",
-         "\t    return;",
-         "\t}",
-         "\t*/",
-         "\t  ",
-         "  ",
-         "\t// FIXME - this may be more complicated...",
-         "\t//for (var i in this.def) {",
-         "\t//    this.file[i] =  this.get(i).el.get_text();",
-         "\t//}",
+         "\t ",
          "",
          "\tif (!_this.is_new) {",
          "\t  //  try {",
index 01684da..94ab8c9 100644 (file)
                             
                            return;
                        }
-                       // what does this do?
-                       
-                 
-                       /*
-                       if (!isNew && this.file.name != _this.name.el.get_text()) {
-                           Xcls_StandardErrorDialog.singleton().show(
-                               this.el,
-                               "Sorry changing names does not work yet. "
-                           );
-                            
-                           return;
-                       }
-                       */
-                         
-                  
-                       // FIXME - this may be more complicated...
-                       //for (var i in this.def) {
-                       //    this.file[i] =  this.get(i).el.get_text();
-                       //}
+                        
                 
                        if (!_this.is_new) {
                          //  try {
index 716a252..e44b1f3 100644 (file)
@@ -834,8 +834,8 @@ namespace Project {
                        }
                        var sp = this.findDir(pfile.dir);
                        sp.childfiles.append(pfile);    
-                               
-
+                       this.file.set(pfile.path, pfile);
+                       
                        this.on_changed();
                }