Install button not active for incompatible

This commit is contained in:
Akarshit Wal
2015-08-15 10:22:50 +05:30
parent 2d9567e885
commit 5a96ef2803

View File

@@ -246,8 +246,9 @@ class StatusPanel extends JPanel {
updateButton.setText("Update");
}
installButton.setEnabled(!panel.getContrib().isInstalled() && contributionListing.hasDownloadedLatestList());
installButton.setEnabled(!panel.getContrib().isInstalled()
&& contributionListing.hasDownloadedLatestList()
&& panel.getContrib().isCompatible(Base.getRevision()));
if(installButton.isEnabled()){
updateLabel.setText(currentVersion + " available");