Closed maztan closed 1 year ago
Oh that's odd. I tested this on macos, i will double check this.
If I simply switch to version 3.17 it works again.
śr., 14 kwi 2021, 11:48 użytkownik dorkbox @.***> napisał:
Oh that's odd. I tested this on macos, i will double check this.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dorkbox/SystemTray/issues/153#issuecomment-819388947, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKEFBPRHDQLULZVT6Y4VCTTIVQIDANCNFSM425AWDLA .
We have the same issue in one of our projects. The problem is that we cannot switch back to version 3.17 as this version is not compatible with jdk 16 anymore.
Thanks for the info.
I'm not sure what's going on yet - as my backlog is just now clearing up.
Found a temporary workaround analyzing the changes between version 3.17 and 4.1. If we use the AWT MenuItem as used in version 3.17 menu works as well on MacOs. So simply put the following before loading the SystemTray:
if (OS.isMacOsX) {
SystemTray.FORCE_TRAY_TYPE = TrayType.Awt
}
SystemTray.get()
Confirmed the issue as well as the workaround on BigSur.
The tray icon appears, menu items can be clicked but the action listeners aren't called. I am using the same code as in your test code and haven't changed anything since using version 3.7 of the tray. In 4.1 it is just not working.