|
@@ -39,6 +39,7 @@ import com.dmdirc.interfaces.Connection;
|
39
|
39
|
import com.dmdirc.interfaces.GroupChat;
|
40
|
40
|
import com.dmdirc.interfaces.PrivateChat;
|
41
|
41
|
import com.dmdirc.interfaces.config.AggregateConfigProvider;
|
|
42
|
+import com.dmdirc.interfaces.ui.Window;
|
42
|
43
|
import com.dmdirc.plugins.PluginDomain;
|
43
|
44
|
|
44
|
45
|
import javax.inject.Inject;
|
|
@@ -102,7 +103,7 @@ public class WindowStatusManager {
|
102
|
103
|
|
103
|
104
|
@Handler(invocation = EdtHandlerInvocation.class)
|
104
|
105
|
public void selectionChanged(final SwingWindowSelectedEvent event) {
|
105
|
|
- event.getWindow().ifPresent(w -> updateStatus(event.getWindow().get().getContainer()));
|
|
106
|
+ event.getWindow().map(Window::getContainer).ifPresent(this::updateStatus);
|
106
|
107
|
}
|
107
|
108
|
|
108
|
109
|
/** Update the window status using the current active window. */
|