Improve KeyVerificationPopup for current device

Make the text more useful and more adapted to the possible situations.
This commit is contained in:
miruka 2020-07-11 16:11:18 -04:00
parent cf7786e6c6
commit 2b52040632

View File

@ -66,8 +66,13 @@ HFlickableColumnPopup {
} }
} }
onOpened: infoArea.forceActiveFocus()
SummaryLabel { SummaryLabel {
text: qsTr("Do these info match on your other session?") text:
deviceIsCurrent ?
qsTr("Your session's info:") :
qsTr("Do these info match on your other session?")
} }
HTextArea { HTextArea {
@ -81,6 +86,7 @@ HFlickableColumnPopup {
) )
} }
id: infoArea
readOnly: true readOnly: true
wrapMode: HSelectableLabel.Wrap wrapMode: HSelectableLabel.Wrap
textFormat: Qt.RichText textFormat: Qt.RichText
@ -97,10 +103,12 @@ HFlickableColumnPopup {
text: text:
deviceIsCurrent ? deviceIsCurrent ?
qsTr( qsTr(
"Compare with the info in the account settings of the " + "To be verified by one of your other session, compare these " +
"session that wants to verify this one, and " + "info with the ones shown on that session.\n\n" +
"indicate to that other session whether they match. " +
"If they differ, your account's security may be compromised." "To be verified by another user, send them these info. " +
"If you already know them, use a trusted contact method, " +
"such as email or a phone call."
) : ) :
qsTr( qsTr(
"Compare with the info in your other session's account " + "Compare with the info in your other session's account " +
@ -108,6 +116,4 @@ HFlickableColumnPopup {
"If they differ, your account's security may be compromised." "If they differ, your account's security may be compromised."
) )
} }
onOpened: cancelButton.forceActiveFocus()
} }