1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-08-13 16:53:51 -04:00

Fix OSX menu default ActionListener

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@612 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-07-06 13:54:58 +00:00
parent 60fdd74d6e
commit 3144b001d3

View File

@ -23,8 +23,8 @@ public class OSXAwtGatewayTray extends AwtGatewayTray {
@Override
protected void createAndShowGUI() {
System.setProperty("apple.laf.useScreenMenuBar", "true");
trayIcon.removeActionListener(settingsListener);
super.createAndShowGUI();
trayIcon.removeActionListener(settingsListener);
try {
OSXAdapter.setAboutHandler(this, AwtGatewayTray.class.getDeclaredMethod("about", (Class[]) null));
OSXAdapter.setPreferencesHandler(this, AwtGatewayTray.class.getDeclaredMethod("preferences", (Class[]) null));