Skip to content

Commit

Permalink
disable buttons while downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaSteward committed Dec 7, 2014
1 parent 9a755c3 commit b374fc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/xmage/launcher/XMageLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@ protected Void doInBackground() {

private boolean updateJava() {
try {
disableButtons();
File javaFolder = new File(path.getAbsolutePath() + File.separator + "java");
String javaAvailableVersion = (String)config.getJSONObject("java").get(("version"));
if (javaFolder.isDirectory()) { //remove existing install
Expand Down Expand Up @@ -739,6 +740,7 @@ private boolean updateJava() {

private boolean updateXMage() {
try {
disableButtons();
File xmageFolder = new File(path.getAbsolutePath() + File.separator + "xmage");
String xmageAvailableVersion = (String)config.getJSONObject("XMage").get(("version"));
String xmageRemoteLocation;
Expand Down

0 comments on commit b374fc8

Please sign in to comment.