mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Fixing issue with tab menu and tabs with the same base name but different extensions (issue 191).
This commit is contained in:
@ -359,7 +359,9 @@ public class EditorHeader extends JComponent {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
for (SketchCode code : sketch.getCode()) {
|
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);
|
item.addActionListener(jumpListener);
|
||||||
menu.add(item);
|
menu.add(item);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user