35
35
import processing .core .PApplet ;
36
36
37
37
38
+
38
39
/**
39
40
* Threaded class to check for updates in the background.
40
41
* <p/>
@@ -112,6 +113,7 @@ public void updateCheck() throws IOException {
112
113
System .getProperty ("os.arch" ));
113
114
114
115
int latest = readInt (LATEST_URL + "?" + info );
116
+ int revision = Base .getRevision ();
115
117
116
118
String lastString = Preferences .get ("update.last" );
117
119
long now = System .currentTimeMillis ();
@@ -125,18 +127,19 @@ public void updateCheck() throws IOException {
125
127
Preferences .set ("update.last" , String .valueOf (now ));
126
128
127
129
if (base .activeEditor != null ) {
128
- // boolean offerToUpdateContributions = true;
129
130
130
- if (latest > Base . getRevision () ) {
131
+ if (latest > revision ) {
131
132
System .out .println ("You are running Processing revision 0" +
132
- Base . getRevision () + ", the latest build is 0" +
133
+ revision + ", the latest build is 0" +
133
134
latest + "." );
134
135
// Assume the person is busy downloading the latest version
135
136
// offerToUpdateContributions = !promptToVisitDownloadPage();
136
137
promptToVisitDownloadPage ();
137
138
}
138
- if (latest < Base .getRevision ()){
139
- WelcomeToBeta .showWelcomeToBeta ();
139
+
140
+ int lastBetaWelcomeSeen = Preferences .getInteger ("update.beta_welcome" );
141
+ if (latest < revision && revision != lastBetaWelcomeSeen ) {
142
+ WelcomeToBeta .showWelcomeToBeta ();
140
143
}
141
144
142
145
/*
0 commit comments