We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 534d626 commit 8ffbe05Copy full SHA for 8ffbe05
app/src/processing/app/Base.java
@@ -1102,11 +1102,12 @@ public void actionPerformed(ActionEvent e) {
1102
List<ContributedLibrary> libs = getSortedLibraries();
1103
String lastLibType = null;
1104
for (ContributedLibrary lib : libs) {
1105
- if (lastLibType == null || !lastLibType.equals(lib.getTypes().get(0))) {
+ String libType = lib.getTypes().get(0);
1106
+ if (!libType.equals(lastLibType)) {
1107
if (lastLibType != null) {
1108
importMenu.addSeparator();
1109
}
- lastLibType = lib.getTypes().get(0);
1110
+ lastLibType = libType;
1111
JMenuItem platformItem = new JMenuItem(I18n.format(tr("{0} libraries"), tr(lastLibType)));
1112
platformItem.setEnabled(false);
1113
importMenu.add(platformItem);
0 commit comments