3535import processing .core .PApplet ;
3636
3737
38+
3839/**
3940 * Threaded class to check for updates in the background.
4041 * <p/>
@@ -112,6 +113,7 @@ public void updateCheck() throws IOException {
112113 System .getProperty ("os.arch" ));
113114
114115 int latest = readInt (LATEST_URL + "?" + info );
116+ int revision = Base .getRevision ();
115117
116118 String lastString = Preferences .get ("update.last" );
117119 long now = System .currentTimeMillis ();
@@ -125,18 +127,19 @@ public void updateCheck() throws IOException {
125127 Preferences .set ("update.last" , String .valueOf (now ));
126128
127129 if (base .activeEditor != null ) {
128- // boolean offerToUpdateContributions = true;
129130
130- if (latest > Base . getRevision () ) {
131+ if (latest > revision ) {
131132 System .out .println ("You are running Processing revision 0" +
132- Base . getRevision () + ", the latest build is 0" +
133+ revision + ", the latest build is 0" +
133134 latest + "." );
134135 // Assume the person is busy downloading the latest version
135136// offerToUpdateContributions = !promptToVisitDownloadPage();
136137 promptToVisitDownloadPage ();
137138 }
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 ();
140143 }
141144
142145 /*
0 commit comments