mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-31 20:52:13 +01:00
2f3a561c61
Fixes #7924 JRE 8u161 made JMenu.insert() MUCH slower on OSX. This exposed a bug lurking there for years; in fact the menu entries were rebuilt every time since JMenu.getComponent() returns an empty list. The correct function is JMenu.getMenuComponents(). In the meantime, also remove sketchbookMenu and examplesMenu being deleted on board change; only their content needs to be updated, not the container itself.