Skip to content

Commit 3a8f2a9

Browse files
committed
trying to look into update check quirk
1 parent c95814e commit 3a8f2a9

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

app/src/processing/app/UpdateCheck.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,22 @@ public void updateCheck() throws Exception {
112112
boolean offerToUpdateContributions = true;
113113

114114
if (latest > Base.REVISION) {
115+
System.out.println("You are running Processing revision " +
116+
Base.REVISION + ", the latest is " + latest + ".");
115117
// Assume the person is busy downloading the latest version
116118
offerToUpdateContributions = !promptToVisitDownloadPage();
117119
}
118120

119121
if (offerToUpdateContributions) {
120-
// Wait for xml file to be downloaded and updates to come in. (this
121-
// should really be handled better).
122+
// Wait for xml file to be downloaded and updates to come in.
123+
// (this should really be handled better).
122124
Thread.sleep(5 * 1000);
123-
if (!base.libraryManagerFrame.hasAlreadyBeenOpened() && base.libraryManagerFrame.hasUpdates() ||
124-
!base.toolManagerFrame.hasAlreadyBeenOpened() && base.toolManagerFrame.hasUpdates() ||
125-
!base.modeManagerFrame.hasAlreadyBeenOpened() && base.modeManagerFrame.hasUpdates()) {
125+
if ((!base.libraryManagerFrame.hasAlreadyBeenOpened() &&
126+
base.libraryManagerFrame.hasUpdates()) ||
127+
(!base.toolManagerFrame.hasAlreadyBeenOpened() &&
128+
base.toolManagerFrame.hasUpdates()) ||
129+
(!base.modeManagerFrame.hasAlreadyBeenOpened() &&
130+
base.modeManagerFrame.hasUpdates())) {
126131
promptToOpenContributionManager();
127132
}
128133
}

0 commit comments

Comments
 (0)