Skip to content

Commit e0f3e51

Browse files
committed
Show encryption information when waiting for accepted pairing
1 parent fc9ee1c commit e0f3e51

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

app/qml/pages/DevicePage.qml

+32-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Page {
7171

7272
PropertyChanges {
7373
target: placeholder
74-
text: i18n("Waiting for accepted pairing ...")
74+
text: ""
7575
}
7676
},
7777
State {
@@ -138,6 +138,37 @@ Page {
138138
}
139139
}
140140

141+
Column {
142+
id: waitForAcceptedPairingEntry
143+
spacing: Theme.paddingLarge
144+
height: Theme.itemSizeSmall
145+
width: parent.width - Theme.paddingLarge * 2
146+
x: Theme.horizontalPageMargin
147+
visible: deviceView.state === "waitForAcceptedPairing"
148+
149+
Label {
150+
color: Theme.highlightColor
151+
text: i18n("Waiting for accepted pairing ...")
152+
width: parent.width
153+
wrapMode: Text.Wrap
154+
}
155+
156+
Button {
157+
text: i18n("Cancel")
158+
onClicked: _device.cancelPairing()
159+
}
160+
161+
Item {
162+
height: Theme.paddingLarge
163+
width: parent.width
164+
}
165+
166+
EncryptionInfo {
167+
width: parent.width
168+
encryptionInfo: _device ? _device.encryptionInfo() : ""
169+
}
170+
}
171+
141172
Column {
142173
id: trustEntry
143174
spacing: Theme.paddingLarge

0 commit comments

Comments
 (0)