aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/key_generate/KeygenDialog.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-11-07 07:18:06 +0000
committersaturneric <[email protected]>2023-11-07 07:18:06 +0000
commit3ad7fecdb6458fdd6f146bed19fe643c7f93e905 (patch)
tree522f7a5dd0389ad0771d01a50ea49ef646940894 /src/ui/dialog/key_generate/KeygenDialog.cpp
parentrefactor: improve the code structure of core (diff)
downloadGpgFrontend-3ad7fecdb6458fdd6f146bed19fe643c7f93e905.tar.gz
GpgFrontend-3ad7fecdb6458fdd6f146bed19fe643c7f93e905.zip
refactor: remove CommonUtils at core
Diffstat (limited to '')
-rw-r--r--src/ui/dialog/key_generate/KeygenDialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/dialog/key_generate/KeygenDialog.cpp b/src/ui/dialog/key_generate/KeygenDialog.cpp
index 7d29036f..0fd7b6c4 100644
--- a/src/ui/dialog/key_generate/KeygenDialog.cpp
+++ b/src/ui/dialog/key_generate/KeygenDialog.cpp
@@ -30,9 +30,9 @@
#include <qobject.h>
-#include "core/common/CoreCommonUtil.h"
#include "core/function/GlobalSettingStation.h"
#include "core/function/gpg/GpgKeyOpera.h"
+#include "core/utils/CacheUtils.h"
#include "dialog/WaitingDialog.h"
#include "ui/SignalStation.h"
@@ -141,8 +141,8 @@ void KeyGenDialog::slot_key_gen_accept() {
}
if (!use_pinentry_ && !gen_key_info_->IsNoPassPhrase()) {
- CoreCommonUtil::GetInstance()->SetTempCacheValue(
- "__key_passphrase", this->passphrase_edit_->text().toStdString());
+ SetTempCacheValue("__key_passphrase",
+ this->passphrase_edit_->text().toStdString());
}
GpgGenKeyResult result;
@@ -162,7 +162,7 @@ void KeyGenDialog::slot_key_gen_accept() {
dialog->close();
if (!use_pinentry_ && !gen_key_info_->IsNoPassPhrase()) {
- CoreCommonUtil::GetInstance()->ResetTempCacheValue("__key_passphrase");
+ ResetTempCacheValue("__key_passphrase");
}
SPDLOG_DEBUG("generate done");