mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
cleaning up/testing #4712
This commit is contained in:
@@ -158,21 +158,24 @@ abstract public class Contribution {
|
||||
}
|
||||
|
||||
|
||||
// "1.0.2"
|
||||
// "1.0.2" or null if not present
|
||||
public String getPrettyVersion() {
|
||||
return prettyVersion;
|
||||
}
|
||||
|
||||
|
||||
// 1402805757
|
||||
public long getLastUpdated() {
|
||||
return lastUpdated;
|
||||
}
|
||||
|
||||
|
||||
// 0
|
||||
public int getMinRevision() {
|
||||
return minRevision;
|
||||
}
|
||||
|
||||
|
||||
// 227
|
||||
public int getMaxRevision() {
|
||||
return maxRevision;
|
||||
|
||||
@@ -461,7 +461,7 @@ class DetailPanel extends JPanel {
|
||||
desc.append("</font> ");
|
||||
|
||||
String version = contrib.getPrettyVersion();
|
||||
if (version != null && !version.equals("null")) {
|
||||
if (version != null) {
|
||||
desc.append(version);
|
||||
}
|
||||
desc.append(" <br/>");
|
||||
|
||||
@@ -265,14 +265,14 @@ class StatusPanel extends JPanel {
|
||||
updateLabel.setText("Available");
|
||||
}
|
||||
} else {
|
||||
if (currentVersion != null && !currentVersion.equals("null")) {
|
||||
if (currentVersion != null) {
|
||||
updateLabel.setText(currentVersion + " installed");
|
||||
} else {
|
||||
updateLabel.setText("Installed");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (currentVersion != null && !currentVersion.equals("null")) {
|
||||
if (currentVersion != null) {
|
||||
updateLabel.setText(currentVersion + " not compatible");
|
||||
} else {
|
||||
updateLabel.setText("Not compatible");
|
||||
|
||||
Reference in New Issue
Block a user