-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Fix OSX "slow" menus #7935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix OSX "slow" menus #7935
Conversation
Fixes arduino#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.
✅ Build completed. Please test this code using one of the following: ⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7935-BUILD-760-linux32.tar.xz ℹ️ The |
Thanks!
Tomorrow I will do testing and let you know what happens with Teensy 3.2
Send from iPhone
… Wiadomość napisana przez Arduino Bot ***@***.***> w dniu 27.08.2018, o godz. 15:48:
✅ Build completed.
Please test this code using one of the following:
⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7935-BUILD-760-linux32.tar.xz
⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7935-BUILD-760-linux64.tar.xz
⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7935-BUILD-760-windows.zip
⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7935-BUILD-760-macosx.zip
⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-7935-BUILD-760-linuxarm.tar.xz
ℹ️ The linuxarm build is still experimental and may not be always available.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
If you find any problem that only happens with Teensy, but doesn't occur with official Arduino boards, please report it on the PJRC Forum, not here. I'll reply there and work on a fix. This tracker is only for Arduino issues. And just to confirm, there is an unrelated Teensyduino bug where the Ports menu is experiencing lag on some Macintosh computers. I am working on fix. The last thing I want to do is cause confusion or extra work for the Arduino developers, in this unfortunate situation of entirely different issues that manifest with similar symptoms. |
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
andexamplesMenu
deletion on board change; only their content needs to be updated, not the container itself.Fixes #7924