Skip to content

Commit afc7c59

Browse files
PaulStoffregencmaglie
authored andcommitted
Only sort ideLibs if it's not empty
1 parent d49401b commit afc7c59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/Base.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,8 +1214,8 @@ public void rebuildExamplesMenu(JMenu menu) {
12141214
}
12151215

12161216
// Add examples from libraries
1217-
ideLibs.sort();
12181217
if (!ideLibs.isEmpty()) {
1218+
ideLibs.sort();
12191219
label = new JMenuItem(tr("Examples from Built-in Libraries"));
12201220
label.setEnabled(false);
12211221
menu.add(label);

0 commit comments

Comments
 (0)