mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Adding examples to the toolbar's open menu (in addition to the examples menu).
This commit is contained in:
@ -936,7 +936,11 @@ public class Base {
|
|||||||
//System.out.println("rebuilding examples menu");
|
//System.out.println("rebuilding examples menu");
|
||||||
// Add each of the subfolders of examples directly to the menu
|
// Add each of the subfolders of examples directly to the menu
|
||||||
try {
|
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) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user