mirror of https://github.com/zlatinb/muwire
show the number of connections in connection manager
parent
5a2312f488
commit
59c0303fb8
|
@ -66,14 +66,13 @@ class MainFrameModel {
|
|||
|
||||
void onConnectionEvent(ConnectionEvent e) {
|
||||
runInsideUIAsync {
|
||||
if (e.status == ConnectionAttemptStatus.SUCCESSFUL)
|
||||
connections++
|
||||
connections = core.connectionManager.getConnections().size()
|
||||
}
|
||||
}
|
||||
|
||||
void onDisconnectionEvent(DisconnectionEvent e) {
|
||||
runInsideUIAsync {
|
||||
connections--
|
||||
connections = core.connectionManager.getConnections().size()
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue