1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-18 07:52:14 +01:00

Fixing issue with tab menu and tabs with the same base name but different extensions (issue 191).

This commit is contained in:
David A. Mellis 2010-05-16 04:43:03 +00:00
parent 775c4d272c
commit 6efe13c8a1

View File

@ -359,7 +359,9 @@ public class EditorHeader extends JComponent {
}
};
for (SketchCode code : sketch.getCode()) {
item = new JMenuItem(code.getPrettyName());
item = new JMenuItem(code.isExtension(sketch.getDefaultExtension()) ?
code.getPrettyName() : code.getFileName());
item.setActionCommand(code.getFileName());
item.addActionListener(jumpListener);
menu.add(item);
}