You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I migrated from the old version(2.1.8) to 3.0.0-BETA2, which was very straight forward.
When I try running my application, however, I noticed that the MenuItem events aren't always working. For example, when I click on the About menu item, or the Preferences menu item (that I created), the events don't work consistently. They work sometimes, but not all the time (seem to work about 10% of the time). Same thing when I try the Quit menu item; sometimes the application exits, but mostly not.
The code I am using, is the same as for the old version, and when I revert to the the older version, the events work was expected.
I also tried using the defaultApplicationMenu (using createDefaultApplicationMenu()), but the same problem occurs.
I'm not sure why sometimes it works and sometimes not; maybe a timing issue.
Also note: I am using JavaFX 15.0.1. (I'm not sure if that matters.)
The text was updated successfully, but these errors were encountered:
Hi @vewert , thank you for the report and sorry for the inconvenience. I also noticed this issue recently and i already have a fix ready. The problem is, that the objects that were being called back from native code sometimes got garbage collected as no further reference existed within Java. I'm now keeping an extra reference to prevent that ;) I'm planing to release the fix as 3.0.0 today or tomorrow, as there are no further API changes planned so far.
I migrated from the old version(2.1.8) to 3.0.0-BETA2, which was very straight forward.
When I try running my application, however, I noticed that the MenuItem events aren't always working. For example, when I click on the About menu item, or the Preferences menu item (that I created), the events don't work consistently. They work sometimes, but not all the time (seem to work about 10% of the time). Same thing when I try the Quit menu item; sometimes the application exits, but mostly not.
The code I am using, is the same as for the old version, and when I revert to the the older version, the events work was expected.
I also tried using the defaultApplicationMenu (using
createDefaultApplicationMenu()
), but the same problem occurs.I'm not sure why sometimes it works and sometimes not; maybe a timing issue.
Also note: I am using JavaFX 15.0.1. (I'm not sure if that matters.)
The text was updated successfully, but these errors were encountered: