Skip to content

Commit

Permalink
Changes related to Entering passphrase ui design
Browse files Browse the repository at this point in the history
  • Loading branch information
TSI-parulsharma committed Jul 4, 2023
1 parent 0ba52a6 commit f699cae
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/libsync/clientsideencryption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1592,16 +1592,15 @@ void ClientSideEncryption::decryptPrivateKey(const AccountPtr &account, const QB

QString msg = tr("Please enter your end-to-end encryption passphrase:<br>"
"<br>"
"Username: %2<br>"
"Account: %3<br>")
.arg(Utility::escape(account->credentials()->user()),
Utility::escape(account->displayName()));
"User: %2<br>")
.arg(Utility::escape(account->prettyName()));

QInputDialog dialog;
dialog.setWindowTitle(tr("Enter E2E passphrase"));
dialog.setWindowFlags(dialog.windowFlags() & ~Qt::WindowContextHelpButtonHint);
dialog.setWindowTitle(tr("Enter end-to-end encryption"));
dialog.setLabelText(msg);
dialog.setTextEchoMode(QLineEdit::Normal);

dialog.setFixedSize(588,214);
QString prev;

while(true) {
Expand Down

0 comments on commit f699cae

Please sign in to comment.