resources/Editors/Editor.Roo.LayoutDialog.bjs
[app.Builder.js] / src / Resources.vala
index 5011574..296f91a 100644 (file)
@@ -82,9 +82,7 @@ public class Resources : Object
                this.initFiles();
        }
                
-               
-               
-       }       
+                
        public void initFiles()
        {       
                string[] avail_files = { 
@@ -142,17 +140,29 @@ public class Resources : Object
                 
 
         }
+        /**
+         *  called on start to check we have all the required files..
+         */
         public void checkResources()
         {
                bool needsload = false;
-                
+               
+               // this has to check the required files, not the list...
+               string[] required =  {
+                       "bootstrap.builder.html",
+                       "Gir.overides",
+                       "GtkUsage.txt",
+                       "mailer.builder.html",
+                       "roo.builder.html",
+                       "roo.builder.js",
+                       "roodata.json",
+                       "RooUsage.txt"
+               };
+
+               for (var i = 0; i <  required.length; i++ ) { 
                        
-               for (var i = 0; i <  this.fetch_files.size; i++ ) { 
-                       if (this.fetch_files.get(i).target.contains("*")) {
-                               continue;
-                       }
                        if (!FileUtils.test(
-                               BuilderApplication.configDirectory() + "/resources/"  + this.fetch_files.get(i).target,
+                               BuilderApplication.configDirectory() + "/resources/"  + required[i],
                                FileTest.EXISTS
                                )) {
                                needsload = true;