We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e596c6 commit c432669Copy full SHA for c432669
app/src/processing/app/UpdateCheck.java
@@ -66,14 +66,14 @@ public UpdateCheck(Base base) {
66
public void run() {
67
//System.out.println("checking for updates...");
68
69
- // generate a random id in case none exists yet
70
- Random r = new Random();
71
- long id = r.nextLong();
72
-
+ long id;
73
String idString = PreferencesData.get("update.id");
74
if (idString != null) {
75
id = Long.parseLong(idString);
76
} else {
+ // generate a random id in case none exists yet
+ Random r = new Random();
+ id = r.nextLong();
77
PreferencesData.set("update.id", String.valueOf(id));
78
}
79
0 commit comments