|
@@ -28,6 +28,7 @@ import com.dmdirc.config.ConfigBinding;
|
28
|
28
|
import com.dmdirc.events.FrameClosingEvent;
|
29
|
29
|
import com.dmdirc.events.ServerAwayEvent;
|
30
|
30
|
import com.dmdirc.events.ServerBackEvent;
|
|
31
|
+import com.dmdirc.events.ServerConnectedEvent;
|
31
|
32
|
import com.dmdirc.interfaces.Connection;
|
32
|
33
|
import com.dmdirc.interfaces.WindowModel;
|
33
|
34
|
|
|
@@ -84,6 +85,11 @@ public class AwayLabel extends JLabel {
|
84
|
85
|
.map(Connection::isAway).ifPresent(this::updateVisibility);
|
85
|
86
|
}
|
86
|
87
|
|
|
88
|
+ @Handler(delivery = Invoke.Asynchronously, invocation = EdtHandlerInvocation.class)
|
|
89
|
+ public void handleReconnect(final ServerConnectedEvent event) {
|
|
90
|
+ updateVisibility(false);
|
|
91
|
+ }
|
|
92
|
+
|
87
|
93
|
private void updateVisibility(final boolean away) {
|
88
|
94
|
setVisible(useAwayIndicator && away);
|
89
|
95
|
}
|