Revert "Revert "Update to a incompatible version is not possible""

This reverts commit 728a21a5571c82ea1eb94b141c2211f9306e06df.

Conflicts:
	app/src/processing/app/contrib/StatusPanel.java
This commit is contained in:
Akarshit Wal
2015-09-18 13:14:01 +05:30
parent a1715658a9
commit fe5082c2c9
2 changed files with 12 additions and 1 deletions
@@ -515,7 +515,8 @@ public class ContributionListing {
if (advertised == null) {
return false;
}
return advertised.getVersion() > contribution.getVersion();
return advertised.getVersion() > contribution.getVersion()
&& advertised.isCompatible(Base.getRevision());
}
return false;
}
@@ -242,6 +242,16 @@ class StatusPanel extends JPanel {
contributionListing.getLatestVersion(panel.getContrib());
String currentVersion = panel.getContrib().getPrettyVersion();
installButton.setEnabled(!panel.getContrib().isInstalled()
&& contributionListing.hasDownloadedLatestList()
&& panel.getContrib().isCompatible(Base.getRevision()));
if (installButton.isEnabled()) {
updateLabel.setText(latestVersion + " available");
} else {
updateLabel.setText(currentVersion + " installed");
}
if (latestVersion != null) {
latestVersion = "Update to " + latestVersion;
} else {