Do not reset config by default, fix woopsie
authorNiki Roo <niki@nikiroo.be>
Sun, 10 Dec 2017 17:13:58 +0000 (18:13 +0100)
committerNiki Roo <niki@nikiroo.be>
Sun, 10 Dec 2017 17:13:58 +0000 (18:13 +0100)
src/be/nikiroo/fanfix/Instance.java

index c265861aefb3f2b8c3e7e324c216ded7cad1682d..ed22f6217b13fd57bb28953f188c59f98f2321a4 100644 (file)
@@ -47,7 +47,7 @@ public class Instance {
                }
 
                // Most of the rest is dependent upon this:
-               createConfigs(configDir, true);
+               createConfigs(configDir, false);
 
                // update tracer:
                boolean debug = Instance.getConfig()
@@ -336,7 +336,7 @@ public class Instance {
         * @param configDir
         *            the directory where to find the configuration files
         * @param refresh
-        *            TRUE to refresh the configuration files from the default
+        *            TRUE to reset the configuration files from the default
         *            included ones
         */
        private static void createConfigs(String configDir, boolean refresh) {
@@ -390,7 +390,7 @@ public class Instance {
                if (remoteLib == null || remoteLib.trim().isEmpty()) {
                        String libDir = System.getProperty("fanfix.libdir");
                        if (libDir == null || libDir.isEmpty()) {
-                               config.getString(Config.LIBRARY_DIR);
+                               libDir = config.getString(Config.LIBRARY_DIR);
                        }
                        try {
                                lib = new LocalLibrary(getFile(libDir));