Skip to content

Commit 66c80a3

Browse files
[Fix]Select only if update available
1 parent 01c657b commit 66c80a3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mode/tools/SDKUpdater/src/processing/mode/android/tools/SDKUpdater.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,8 @@ private void createLayout(final boolean standalone) {
483483
packageTable = new DefaultTableModel(NUM_ROWS, columns_tools.size()) {
484484
@Override
485485
public boolean isCellEditable(int row, int column) {
486-
if (column == 0) return true;
486+
String version = (String) packageTable.getValueAt(row,3);
487+
if (!version.equals("")) return true; //only if update exists
487488
return false;
488489
}
489490

@@ -606,7 +607,8 @@ public void actionPerformed(ActionEvent actionEvent) {
606607
platformTable = new DefaultTableModel(NUM_ROWS, columns_platforms.size()) {
607608
@Override
608609
public boolean isCellEditable(int row, int column) {
609-
if (column == 0) return true;
610+
String status = (String) platformTable.getValueAt(row,3);
611+
if(status.equals("Not Installed")) return true;
610612
return false;
611613
}
612614

0 commit comments

Comments
 (0)