mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-06 03:08:02 -05:00
More async calls in SWT tray implementation
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@111 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
4867c74956
commit
e82280ef02
@ -139,7 +139,12 @@ public class SwtGatewayTray implements DavGatewayTrayInterface {
|
||||
final Menu popup = new Menu(shell, SWT.POP_UP);
|
||||
trayItem.addListener(SWT.MenuDetect, new Listener() {
|
||||
public void handleEvent(Event event) {
|
||||
popup.setVisible(true);
|
||||
display.asyncExec(
|
||||
new Runnable() {
|
||||
public void run() {
|
||||
popup.setVisible(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@ -163,7 +168,12 @@ public class SwtGatewayTray implements DavGatewayTrayInterface {
|
||||
defaultItem.setText("Settings...");
|
||||
defaultItem.addListener(SWT.Selection, new Listener() {
|
||||
public void handleEvent(Event event) {
|
||||
display.asyncExec(
|
||||
new Runnable() {
|
||||
public void run() {
|
||||
settingsFrame.setVisible(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user