From e0f3e51d12a8aee8a4eaf9e1583d339ccbe46d76 Mon Sep 17 00:00:00 2001 From: Richard Liebscher Date: Mon, 27 May 2024 17:31:40 +0200 Subject: [PATCH] Show encryption information when waiting for accepted pairing --- app/qml/pages/DevicePage.qml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/app/qml/pages/DevicePage.qml b/app/qml/pages/DevicePage.qml index 700e2b1..8c4b05a 100644 --- a/app/qml/pages/DevicePage.qml +++ b/app/qml/pages/DevicePage.qml @@ -71,7 +71,7 @@ Page { PropertyChanges { target: placeholder - text: i18n("Waiting for accepted pairing ...") + text: "" } }, State { @@ -138,6 +138,37 @@ Page { } } + Column { + id: waitForAcceptedPairingEntry + spacing: Theme.paddingLarge + height: Theme.itemSizeSmall + width: parent.width - Theme.paddingLarge * 2 + x: Theme.horizontalPageMargin + visible: deviceView.state === "waitForAcceptedPairing" + + Label { + color: Theme.highlightColor + text: i18n("Waiting for accepted pairing ...") + width: parent.width + wrapMode: Text.Wrap + } + + Button { + text: i18n("Cancel") + onClicked: _device.cancelPairing() + } + + Item { + height: Theme.paddingLarge + width: parent.width + } + + EncryptionInfo { + width: parent.width + encryptionInfo: _device ? _device.encryptionInfo() : "" + } + } + Column { id: trustEntry spacing: Theme.paddingLarge