src/Resources.vala
authorAlan Knowles <alan@roojs.com>
Tue, 17 Mar 2015 09:58:02 +0000 (17:58 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 17 Mar 2015 09:58:02 +0000 (17:58 +0800)
src/Resources.vala

index 7571059..6913e46 100644 (file)
@@ -138,11 +138,17 @@ public class Resources : Object
                        
                        for (var i = 0; i < res.length; i++ ) { 
                                
-                               
-                               
-                               this.fetchResource(res[i], force);
+                               if (!FileUtils.test(
+                                       Application.configDirectory() + "/resources/"  + res[i],FileTest.EXISTS
+                                       )) {
+                                       needsload = true;
+                               }
                        }
-                
+                       if (!needsload) {
+                               return;
+                       }
+                       this.fetchStart();
+        }