trying to look into update check quirk

This commit is contained in:
benfry
2012-11-23 18:56:00 +00:00
parent 9e85ecaff4
commit 50df5e17b4
+10 -5
View File
@@ -112,17 +112,22 @@ public class UpdateCheck {
boolean offerToUpdateContributions = true;
if (latest > Base.REVISION) {
System.out.println("You are running Processing revision " +
Base.REVISION + ", the latest is " + latest + ".");
// Assume the person is busy downloading the latest version
offerToUpdateContributions = !promptToVisitDownloadPage();
}
if (offerToUpdateContributions) {
// Wait for xml file to be downloaded and updates to come in. (this
// should really be handled better).
// Wait for xml file to be downloaded and updates to come in.
// (this should really be handled better).
Thread.sleep(5 * 1000);
if (!base.libraryManagerFrame.hasAlreadyBeenOpened() && base.libraryManagerFrame.hasUpdates() ||
!base.toolManagerFrame.hasAlreadyBeenOpened() && base.toolManagerFrame.hasUpdates() ||
!base.modeManagerFrame.hasAlreadyBeenOpened() && base.modeManagerFrame.hasUpdates()) {
if ((!base.libraryManagerFrame.hasAlreadyBeenOpened() &&
base.libraryManagerFrame.hasUpdates()) ||
(!base.toolManagerFrame.hasAlreadyBeenOpened() &&
base.toolManagerFrame.hasUpdates()) ||
(!base.modeManagerFrame.hasAlreadyBeenOpened() &&
base.modeManagerFrame.hasUpdates())) {
promptToOpenContributionManager();
}
}