mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Pointing the update check at the Arduino server (instead of processing.org).
This commit is contained in:
@ -49,13 +49,14 @@ import processing.core.PApplet;
|
|||||||
*/
|
*/
|
||||||
public class UpdateCheck implements Runnable {
|
public class UpdateCheck implements Runnable {
|
||||||
Base base;
|
Base base;
|
||||||
String downloadURL = "http://processing.org/download/latest.txt";
|
String downloadURL = "http://www.arduino.cc/latest.txt";
|
||||||
|
|
||||||
static final long ONE_DAY = 24 * 60 * 60 * 1000;
|
static final long ONE_DAY = 24 * 60 * 60 * 1000;
|
||||||
|
|
||||||
|
|
||||||
public UpdateCheck(Base base) {
|
public UpdateCheck(Base base) {
|
||||||
Thread thread = new Thread(this);
|
Thread thread = new Thread(this);
|
||||||
|
this.base = base;
|
||||||
thread.start();
|
thread.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -98,9 +99,9 @@ public class UpdateCheck implements Runnable {
|
|||||||
Preferences.set("update.last", String.valueOf(now));
|
Preferences.set("update.last", String.valueOf(now));
|
||||||
|
|
||||||
String prompt =
|
String prompt =
|
||||||
"A new version of Processing is available,\n" +
|
"A new version of Arduino is available,\n" +
|
||||||
"would you like to visit the Processing download page?";
|
"would you like to visit the Arduino download page?";
|
||||||
|
|
||||||
if (base.activeEditor != null) {
|
if (base.activeEditor != null) {
|
||||||
if (latest > Base.REVISION) {
|
if (latest > Base.REVISION) {
|
||||||
Object[] options = { "Yes", "No" };
|
Object[] options = { "Yes", "No" };
|
||||||
@ -113,7 +114,7 @@ public class UpdateCheck implements Runnable {
|
|||||||
options,
|
options,
|
||||||
options[0]);
|
options[0]);
|
||||||
if (result == JOptionPane.YES_OPTION) {
|
if (result == JOptionPane.YES_OPTION) {
|
||||||
Base.openURL("http://processing.org/download/");
|
Base.openURL("http://www.arduino.cc/en/Main/Software");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user