Skip to content

Commit 2ac8938

Browse files
committed
Merge pull request energia#87 from energia/issue_87
Fix autoupdate and download url
2 parents c82755c + 97c5dd4 commit 2ac8938

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/src/processing/app/UpdateCheck.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
*/
5151
public class UpdateCheck implements Runnable {
5252
Base base;
53-
String downloadURL = _("http://www.arduino.cc/latest.txt");
53+
String downloadURL = _("http://www.energia.nu/latest.txt");
5454

5555
static final long ONE_DAY = 24 * 60 * 60 * 1000;
5656

@@ -100,11 +100,11 @@ public void run() {
100100
Preferences.set("update.last", String.valueOf(now));
101101

102102
String prompt =
103-
_("A new version of Arduino is available,\n" +
104-
"would you like to visit the Arduino download page?");
103+
_("A new version of Energia is available,\n" +
104+
"would you like to visit the Energia download page?");
105105

106106
if (base.activeEditor != null) {
107-
if (latest > Base.REVISION) {
107+
if (latest > Base.EREVISION) {
108108
Object[] options = { _("Yes"), _("No") };
109109
int result = JOptionPane.showOptionDialog(base.activeEditor,
110110
prompt,
@@ -115,7 +115,7 @@ public void run() {
115115
options,
116116
options[0]);
117117
if (result == JOptionPane.YES_OPTION) {
118-
Base.openURL(_("http://www.arduino.cc/en/Main/Software"));
118+
Base.openURL(_("http://www.energia.nu/en/download"));
119119
}
120120
}
121121
}

0 commit comments

Comments
 (0)