diff options
author | saturneric <[email protected]> | 2024-01-17 11:39:47 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-17 11:39:47 +0000 |
commit | e352e8e6b8d03a24ef5d52eef3e4d370807b5bbd (patch) | |
tree | 9a59f0b573a845644afe4b8857a89c4b28bdcc0d /src/ui/function/RaisePinentry.cpp | |
parent | fix: solve the gnupg tab options info not shown issue (diff) | |
download | GpgFrontend-e352e8e6b8d03a24ef5d52eef3e4d370807b5bbd.tar.gz GpgFrontend-e352e8e6b8d03a24ef5d52eef3e4d370807b5bbd.zip |
fix: find and slove some bugs
Diffstat (limited to 'src/ui/function/RaisePinentry.cpp')
-rw-r--r-- | src/ui/function/RaisePinentry.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/function/RaisePinentry.cpp b/src/ui/function/RaisePinentry.cpp index 762977b7..64e10c48 100644 --- a/src/ui/function/RaisePinentry.cpp +++ b/src/ui/function/RaisePinentry.cpp @@ -30,6 +30,7 @@ #include "core/function/CoreSignalStation.h" #include "core/model/GpgPassphraseContext.h" +#include "core/utils/CacheUtils.h" #include "pinentry/pinentrydialog.h" namespace GpgFrontend::UI { @@ -57,7 +58,8 @@ auto RaisePinentry::Exec() -> int { context_->GetUidsInfo().toStdString(), context_->GetPassphraseInfo().toStdString(), context_->IsPreWasBad()); - bool ask_for_new = context_->GetPassphraseInfo().isEmpty() && + bool ask_for_new = context_->IsAskForNew() && + context_->GetPassphraseInfo().isEmpty() && context_->GetUidsInfo().isEmpty(); auto* pinentry = @@ -80,8 +82,8 @@ auto RaisePinentry::Exec() -> int { pinentry->setPinentryInfo(pinentry_info); pinentry->setRepeatErrorText(tr("Passphrases do not match")); - pinentry->setGenpinLabel(QString("BBBBBBBBB")); - pinentry->setGenpinTT(QString("AAAAAAAA")); + pinentry->setGenpinLabel(QString("")); + pinentry->setGenpinTT(QString("")); pinentry->setCapsLockHint(tr("Caps Lock is on")); pinentry->setFormattedPassphrase({false, QString()}); pinentry->setConstraintsOptions({false, QString(), QString(), QString()}); |