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:
parent
775c4d272c
commit
6efe13c8a1
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user