1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Description: Remove the notification if a new upstream version is available
Author: Scott Howard <showard314@gmail.com>
Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=603818
Index: arduino/app/src/processing/app/UpdateCheck.java
===================================================================
--- arduino.orig/app/src/processing/app/UpdateCheck.java 2012-03-11 19:09:34.000000000 -0400
+++ arduino/app/src/processing/app/UpdateCheck.java 2012-03-11 19:14:55.381231127 -0400
@@ -98,27 +98,6 @@
}
}
Preferences.set("update.last", String.valueOf(now));
-
- String prompt =
- _("A new version of Arduino is available,\n" +
- "would you like to visit the Arduino download page?");
-
- if (base.activeEditor != null) {
- if (latest > Base.REVISION) {
- Object[] options = { _("Yes"), _("No") };
- int result = JOptionPane.showOptionDialog(base.activeEditor,
- prompt,
- _("Update"),
- JOptionPane.YES_NO_OPTION,
- JOptionPane.QUESTION_MESSAGE,
- null,
- options,
- options[0]);
- if (result == JOptionPane.YES_OPTION) {
- Base.openURL(_("http://www.arduino.cc/en/Main/Software"));
- }
- }
- }
} catch (Exception e) {
//e.printStackTrace();
//System.err.println("Error while trying to check for an update.");
|