Fixed updater ignoring XDG flag (again).
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
parent
5817217eb5
commit
8cb796bd18
|
@ -56,7 +56,7 @@ import org.newdawn.slick.util.ResourceLoader;
|
|||
*/
|
||||
public class Options {
|
||||
/** Whether to use XDG directories. */
|
||||
private static final boolean USE_XDG = checkXDGFlag();
|
||||
public static final boolean USE_XDG = checkXDGFlag();
|
||||
|
||||
/** The config directory. */
|
||||
private static final File CONFIG_DIR = getXDGBaseDir("XDG_CONFIG_HOME", ".config");
|
||||
|
|
|
@ -196,7 +196,7 @@ public class Updater {
|
|||
* Checks the program version against the version file on the update server.
|
||||
*/
|
||||
public void checkForUpdates() throws IOException {
|
||||
if (status != Status.INITIAL || System.getProperty("XDG") != null)
|
||||
if (status != Status.INITIAL || Options.USE_XDG)
|
||||
return;
|
||||
|
||||
status = Status.CHECKING;
|
||||
|
|
Loading…
Reference in New Issue
Block a user