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
1 changed files with 5 additions and 1 deletions

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();
}