From d589209e92f50cb18167c4d4490d6d270922fb98 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Mon, 1 Jun 2009 18:21:13 +0000 Subject: [PATCH] Adding examples to the toolbar's open menu (in addition to the examples menu). --- app/src/processing/app/Base.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index efbf92c07..0668150bc 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -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(); }