|
@@ -24,6 +24,7 @@ package com.dmdirc.addons.systray;
|
24
|
24
|
|
25
|
25
|
import com.dmdirc.ClientModule.GlobalConfig;
|
26
|
26
|
import com.dmdirc.DMDircMBassador;
|
|
27
|
+import com.dmdirc.addons.ui_swing.EdtHandlerInvocation;
|
27
|
28
|
import com.dmdirc.addons.ui_swing.MainFrame;
|
28
|
29
|
import com.dmdirc.config.prefs.PluginPreferencesCategory;
|
29
|
30
|
import com.dmdirc.config.prefs.PreferencesCategory;
|
|
@@ -161,7 +162,7 @@ public class SystrayManager implements ActionListener, MouseListener {
|
161
|
162
|
}
|
162
|
163
|
}
|
163
|
164
|
|
164
|
|
- @Handler
|
|
165
|
+ @Handler(invocation = EdtHandlerInvocation.class)
|
165
|
166
|
public void handleClientMinimised(final ClientMinimisedEvent event) {
|
166
|
167
|
if (globalConfig.getOptionBool(domain, "autominimise")) {
|
167
|
168
|
mainFrame.setVisible(false);
|