Show the destination IP of the connection in the UI
This commit is contained in:
parent
2fa37400cf
commit
be6c84f34d
@ -719,13 +719,15 @@ class SyncplayClient(object):
|
||||
self._reconnectingService.startService()
|
||||
|
||||
def connectedNow(f):
|
||||
hostIP = connectionHandle.result.transport.addr[0]
|
||||
self.ui.showMessage(getMessage("handshake-successful-notification").format(host, hostIP))
|
||||
return
|
||||
|
||||
def failed(f):
|
||||
reactor.callLater(0.1, self.ui.showErrorMessage, getMessage("connection-failed-notification"), True)
|
||||
reactor.callLater(0.1, self.stop, True)
|
||||
|
||||
waitForConnection.addCallbacks(connectedNow, failed)
|
||||
connectionHandle = waitForConnection.addCallbacks(connectedNow, failed)
|
||||
message = getMessage("connection-attempt-notification").format(host, port)
|
||||
self.ui.showMessage(message)
|
||||
reactor.run()
|
||||
|
||||
@ -16,6 +16,7 @@ de = {
|
||||
"connection-failed-notification": "Verbindung zum Server fehlgeschlagen",
|
||||
"connected-successful-notification": "Erfolgreich mit Server verbunden",
|
||||
"retrying-notification": "%s, versuche erneut in %d Sekunden...", # Seconds
|
||||
"handshake-successful-notification": "Connection established with {} ({})", # TODO: Translate
|
||||
|
||||
"rewind-notification": "Zurückgespult wegen Zeitdifferenz mit {}", # User
|
||||
"fastforward-notification": "Vorgespult wegen Zeitdifferenz mit {}", # User
|
||||
|
||||
@ -16,6 +16,7 @@ en = {
|
||||
"connection-failed-notification": "Connection with server failed",
|
||||
"connected-successful-notification": "Successfully connected to server",
|
||||
"retrying-notification": "%s, Retrying in %d seconds...", # Seconds
|
||||
"handshake-successful-notification": "Connection established with {} ({})",
|
||||
|
||||
"rewind-notification": "Rewinded due to time difference with {}", # User
|
||||
"fastforward-notification": "Fast-forwarded due to time difference with {}", # User
|
||||
|
||||
@ -16,6 +16,7 @@ it = {
|
||||
"connection-failed-notification": "Connessione col server fallita",
|
||||
"connected-successful-notification": "Connessione al server effettuata con successo",
|
||||
"retrying-notification": "%s, Nuovo tentativo in %d secondi...", # Seconds
|
||||
"handshake-successful-notification": "Connessione stabilita con {} ({})",
|
||||
|
||||
"rewind-notification": "Riavvolgo a causa della differenza temporale con {}", # User
|
||||
"fastforward-notification": "Avanzamento rapido a causa della differenza temporale con {}", # User
|
||||
|
||||
@ -16,6 +16,7 @@ ru = {
|
||||
"connection-failed-notification": "Не удалось подключиться к серверу",
|
||||
"connected-successful-notification": "Соединение с сервером установлено",
|
||||
"retrying-notification": "%s, следующая попытка через %d секунд(ы)...", # Seconds
|
||||
"handshake-successful-notification": "Connection established with {} ({})", # TODO: Translate
|
||||
|
||||
"rewind-notification": "Перемотано из-за разницы во времени с {}", # User
|
||||
"fastforward-notification": "Ускорено из-за разницы во времени с {}", # User
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user