mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-30 04:00:50 +01:00
ty lande 2
This commit is contained in:
parent
d80e859378
commit
46c336353f
@ -237,8 +237,12 @@ public class ExtensionHandler {
|
||||
};
|
||||
|
||||
extension.getExtensionObservable().addListener(listener);
|
||||
extension.init(hConnection.getState() == HState.CONNECTED);
|
||||
|
||||
extension.getRemoveClickObservable().addListener(extension::close);
|
||||
extension.getClickedObservable().addListener(extension::doubleclick);
|
||||
observable.fireEvent(l -> l.onExtensionConnect(extension));
|
||||
|
||||
extension.init(hConnection.getState() == HState.CONNECTED);
|
||||
if (hConnection.getState() == HState.CONNECTED) {
|
||||
extension.connectionStart(
|
||||
hConnection.getDomain(),
|
||||
@ -249,11 +253,6 @@ public class ExtensionHandler {
|
||||
hConnection.getPacketInfoManager()
|
||||
);
|
||||
}
|
||||
|
||||
extension.getRemoveClickObservable().addListener(extension::close);
|
||||
extension.getClickedObservable().addListener(extension::doubleclick);
|
||||
|
||||
observable.fireEvent(l -> l.onExtensionConnect(extension));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user