Skip to content

Commit 050a642

Browse files
author
Federico Fissore
committed
Disabled port type fake menu entry. Fixes #3113
1 parent e8c4980 commit 050a642

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/processing/app/Editor.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,9 @@ public int compare(BoardPort o1, BoardPort o2) {
11191119
} else {
11201120
lastProtocolTranslated = port.getProtocol();
11211121
}
1122-
serialMenu.add(new JMenuItem(_(lastProtocolTranslated)));
1122+
JMenuItem lastProtocolMenuItem = new JMenuItem(_(lastProtocolTranslated));
1123+
lastProtocolMenuItem.setEnabled(false);
1124+
serialMenu.add(lastProtocolMenuItem);
11231125
}
11241126
String address = port.getAddress();
11251127
String label = port.getLabel();

0 commit comments

Comments
 (0)