1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

Adding examples to the toolbar's open menu (in addition to the examples menu).

This commit is contained in:
David A. Mellis 2009-06-01 18:21:13 +00:00
parent 89139d1f77
commit d589209e92

View File

@ -936,7 +936,11 @@ public class Base {
//System.out.println("rebuilding examples menu");
// Add each of the subfolders of examples directly to the menu
try {
addSketches(menu, examplesFolder, true);
boolean found = addSketches(menu, examplesFolder, true);
if (found) menu.addSeparator();
found = addSketches(menu, getSketchbookLibrariesFolder(), true);
if (found) menu.addSeparator();
addSketches(menu, librariesFolder, true);
} catch (IOException e) {
e.printStackTrace();
}