fix a bug that clicking the tray icon on macOS will bring up both "the tray menu" and the "main window" up (The tray menu showing up is macOS's intrinsic behavior? We don't have any code touches it).
After this change:
The toggle clipboard monitoring is moved to the dock menu.
To toggling visibility using dock icon: "Click" to bring up and "Option+Click" to hide. Note that "Option+click" may also hide other staffs, a weird shortcut.
Pretty sure this will break someone's habit, however
The tray icon has little value on macOS because macOS's dock has the capability of having custom menu items
Bugs, as in the issues mentioned. They all require macOS specific code that may lock related code in place for future because nobody knows Qt and macOS programming at the same time.
This is probably doable by just invoking the goldendict binary though.
I think this is the best way forward with only downside of breaks some existing users, hopefully they can adapt and hopefully using dock menu isn't hard.
After this change:
The toggle clipboard monitoring is moved to the dock menu.
To toggling visibility using dock icon: "Click" to bring up and "Option+Click" to hide. Note that "Option+click" may also hide other staffs, a weird shortcut.
Pretty sure this will break someone's habit, however
Is there fixes? Yes, but actually no.
(Apple don't use the terminology "tray icons", it is "Menu Extra" BTW. -> from Apple's HIG https://developer.apple.com/design/human-interface-guidelines/the-menu-bar#Menu-bar-extras).
TransformProcessType
->kProcessTransformToUIElementApplication
&kProcessTransformToForegroundApplication
UIElementApplication
is app with "MenuExtra" but no "Dock Icon"LSUIElement = true
.goldendict
binary though.I think this is the best way forward with only downside of breaks some existing users, hopefully they can adapt and hopefully using dock menu isn't hard.