Skip to content

Commit

Permalink
Fixed updater ignoring XDG flag (again).
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
  • Loading branch information
itdelatrisu committed Sep 3, 2015
1 parent 5817217 commit 8cb796b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/itdelatrisu/opsu/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
*/
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");
Expand Down
2 changes: 1 addition & 1 deletion src/itdelatrisu/opsu/downloads/Updater.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private DefaultArtifactVersion getVersion(Properties props) {
* 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;
Expand Down

0 comments on commit 8cb796b

Please # to comment.