mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
Only sort ideLibs if it's not empty
This commit is contained in:
parent
d49401bdbf
commit
afc7c596fc
@ -1214,8 +1214,8 @@ public class Base {
|
||||
}
|
||||
|
||||
// Add examples from libraries
|
||||
ideLibs.sort();
|
||||
if (!ideLibs.isEmpty()) {
|
||||
ideLibs.sort();
|
||||
label = new JMenuItem(tr("Examples from Built-in Libraries"));
|
||||
label.setEnabled(false);
|
||||
menu.add(label);
|
||||
|
Loading…
Reference in New Issue
Block a user