1
0
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:
PaulStoffregen 2016-08-02 02:43:04 -07:00 committed by Cristian Maglie
parent d49401bdbf
commit afc7c596fc

View File

@ -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);