Skip to content

Commit 9b324bc

Browse files
Only sort ideLibs if it's not empty
1 parent 7235f9d commit 9b324bc

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
@@ -1261,8 +1261,8 @@ public void rebuildExamplesMenu(JMenu menu) {
12611261
}
12621262

12631263
// Add examples from libraries
1264-
ideLibs.sort();
12651264
if (!ideLibs.isEmpty()) {
1265+
ideLibs.sort();
12661266
label = new JMenuItem(tr("Examples from Built-in Libraries"));
12671267
label.setEnabled(false);
12681268
menu.add(label);

0 commit comments

Comments
 (0)