mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-26 20:54:22 +01:00
Removing extra nested "examples" menu.
This commit is contained in:
parent
1f838c0ae0
commit
cbcbc5c4d5
@ -1074,14 +1074,20 @@ public class Base {
|
||||
ifound = true;
|
||||
|
||||
} else {
|
||||
// not a sketch folder, but maybe a subfolder containing sketches
|
||||
JMenu submenu = new JMenu(list[i]);
|
||||
// needs to be separate var
|
||||
// otherwise would set ifound to false
|
||||
boolean found = addSketches(submenu, subfolder, openReplaces); //, false);
|
||||
if (found) {
|
||||
menu.add(submenu);
|
||||
ifound = true;
|
||||
// don't create an extra menu level for a folder named "examples"
|
||||
if (subfolder.getName().equals("examples")) {
|
||||
boolean found = addSketches(menu, subfolder, openReplaces); //, false);
|
||||
if (found) ifound = true;
|
||||
} else {
|
||||
// not a sketch folder, but maybe a subfolder containing sketches
|
||||
JMenu submenu = new JMenu(list[i]);
|
||||
// needs to be separate var
|
||||
// otherwise would set ifound to false
|
||||
boolean found = addSketches(submenu, subfolder, openReplaces); //, false);
|
||||
if (found) {
|
||||
menu.add(submenu);
|
||||
ifound = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
6
todo.txt
6
todo.txt
@ -3,13 +3,9 @@
|
||||
|
||||
PROCESSING 5503 SYNC
|
||||
|
||||
Move library examples from the library folders into the example folder.
|
||||
|
||||
Don't explicitly add the built-in or user library examples to the examples menu. Instead, the built-in library examples will be in the examples folder, and the user-library examples will appear in the sketchbook menu.
|
||||
|
||||
Add library keyword highlighting.
|
||||
|
||||
Test the dist.sh. (Revise the disk image and include the drivers.)
|
||||
Test the FTDI drivers in the arduino.dmg.
|
||||
|
||||
Update reference.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user