Open helge17 opened 2 months ago
Hello, this part of code is obscure for me. But I will try.
Following the code, I start from seltoolbarButtonClicked it leads to call toogleToolbar() from MacToolbarAction.java
Which then call processAction
This function seems to toggle display of the Main toolbar. The corresponding action is action.gui.toggle-main-toolbar
I comment like you, compile and execute without changing SWT version. The toolbar can be toggled (I add a shortcut to call action.gui.toggle-main-toolbar) ... this means that above analysis is not true ...
In 2.0beta there is this patch https://github.com/helge17/tuxguitar-2.0beta/commit/03c86e01 that updates the MacOS menu. It cannot be applied here without customization, but maybe it helps.
When upgrading SWT to version 4.15 or higher, the MacOS Cocoa integration plugin shows the following error at startup:
The error is caused by this change from SWT 4.14 to 4.15:
This bug currently prevents the use of newer versions of SWT on MacOS.
The warning disappears if you simply comment out the following lines:
I have not noticed any negative side effects of this patch. So until someone finds the time to rework this part of the code, I would like to commit this patch and update SWT to 4.26.