From 1e193e8a305b03a9fbc33304e0489e8f6cfb1b13 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Mon, 9 Sep 2024 20:46:07 +0200 Subject: [PATCH] Fixed disturbed connection shown in password prompt --- DeviceScreen.qml | 15 +++++++++++---- i18n/qml_de.ts | 24 ++++++++++++------------ 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/DeviceScreen.qml b/DeviceScreen.qml index 515316b..92b7acf 100644 --- a/DeviceScreen.qml +++ b/DeviceScreen.qml @@ -39,9 +39,6 @@ Loader { onLogMessage: (message) => collectedMessages.push(message) - onShowDisturbed: connectionDisturbed.open() - onHideDisturbed: connectionDisturbed.close() - onAuthRequired: { passwordError.visible = false; passwordDialog.open(); @@ -66,7 +63,17 @@ Loader { id: mainScreen MainScreen { - onCloseRequested: loader.closeRequested() + onCloseRequested: { + connectionDisturbed.close() + loader.closeRequested() + } + + Connections { + target: theDeviceConnection + + onShowDisturbed: connectionDisturbed.open() + onHideDisturbed: connectionDisturbed.close() + } } } diff --git a/i18n/qml_de.ts b/i18n/qml_de.ts index f885b1a..89c6961 100644 --- a/i18n/qml_de.ts +++ b/i18n/qml_de.ts @@ -1118,38 +1118,38 @@ DeviceScreen - - + + Password required Passwort erforderlich - - + + Password: Passwort: - - + + Password Passwort - - + + Authentication impossible! Authentifizierung unmöglich! - - + + To use this password remotely a password has to be setup first. This can be done over the AccessPoint. Um dieses Gerät aus der Ferne nutzen zu können, müssen Sie erst ein Passwort einrichten. Dies kann über den AccessPoint gemacht werden. - - + + Connection disturbed Verbindung schwer gestört