From 38febea9082207ed7175734f46489094369da2f9 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Sun, 10 Dec 2017 18:13:58 +0100 Subject: [PATCH] Do not reset config by default, fix woopsie --- src/be/nikiroo/fanfix/Instance.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/be/nikiroo/fanfix/Instance.java b/src/be/nikiroo/fanfix/Instance.java index c265861..ed22f62 100644 --- a/src/be/nikiroo/fanfix/Instance.java +++ b/src/be/nikiroo/fanfix/Instance.java @@ -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)); -- 2.27.0