show the number of connections in connection manager
This commit is contained in:
@@ -66,14 +66,13 @@ class MainFrameModel {
|
|||||||
|
|
||||||
void onConnectionEvent(ConnectionEvent e) {
|
void onConnectionEvent(ConnectionEvent e) {
|
||||||
runInsideUIAsync {
|
runInsideUIAsync {
|
||||||
if (e.status == ConnectionAttemptStatus.SUCCESSFUL)
|
connections = core.connectionManager.getConnections().size()
|
||||||
connections++
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void onDisconnectionEvent(DisconnectionEvent e) {
|
void onDisconnectionEvent(DisconnectionEvent e) {
|
||||||
runInsideUIAsync {
|
runInsideUIAsync {
|
||||||
connections--
|
connections = core.connectionManager.getConnections().size()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user