Fixed updater ignoring XDG flag (again).

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han 2015-09-02 19:23:23 -05:00
parent 5817217eb5
commit 8cb796bd18
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ import org.newdawn.slick.util.ResourceLoader;
*/ */
public class Options { public class Options {
/** Whether to use XDG directories. */ /** Whether to use XDG directories. */
private static final boolean USE_XDG = checkXDGFlag(); public static final boolean USE_XDG = checkXDGFlag();
/** The config directory. */ /** The config directory. */
private static final File CONFIG_DIR = getXDGBaseDir("XDG_CONFIG_HOME", ".config"); private static final File CONFIG_DIR = getXDGBaseDir("XDG_CONFIG_HOME", ".config");

View File

@ -196,7 +196,7 @@ public class Updater {
* Checks the program version against the version file on the update server. * Checks the program version against the version file on the update server.
*/ */
public void checkForUpdates() throws IOException { public void checkForUpdates() throws IOException {
if (status != Status.INITIAL || System.getProperty("XDG") != null) if (status != Status.INITIAL || Options.USE_XDG)
return; return;
status = Status.CHECKING; status = Status.CHECKING;