diff options
author | saturneric <[email protected]> | 2025-05-01 19:20:05 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-05-01 19:20:05 +0000 |
commit | be4cb8e0f9ab4cd1e41979de8809b04211c116f3 (patch) | |
tree | fc938a4d72ed9c9e4a5effeed8548265c2bfd4c5 /src/core/function/gpg/GpgContext.cpp | |
parent | fix: windeployqt call in release workflow (diff) | |
download | GpgFrontend-be4cb8e0f9ab4cd1e41979de8809b04211c116f3.tar.gz GpgFrontend-be4cb8e0f9ab4cd1e41979de8809b04211c116f3.zip |
This change refactors the FilePage widget to directly embed a FileTreeView instance.
It improves code structure by removing the separate layout management and simplifies signal connections.
Also, changes some log level from Error to Debug.
Diffstat (limited to 'src/core/function/gpg/GpgContext.cpp')
-rw-r--r-- | src/core/function/gpg/GpgContext.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/function/gpg/GpgContext.cpp b/src/core/function/gpg/GpgContext.cpp index 49d39650..0f7d30de 100644 --- a/src/core/function/gpg/GpgContext.cpp +++ b/src/core/function/gpg/GpgContext.cpp @@ -88,7 +88,7 @@ class GpgAgentProcess { args.append("--disable-scdaemon"); } - LOG_E() << "gpg-agent start args: " << args << "channel:" << channel_; + LOG_D() << "gpg-agent start args: " << args << "channel:" << channel_; process_.setProgram(info.absoluteFilePath()); process_.setArguments(args); @@ -162,8 +162,8 @@ class GpgContext::Impl { [[nodiscard]] auto Good() const -> bool { return good_; } - auto SetPassphraseCb(const gpgme_ctx_t &ctx, - gpgme_passphrase_cb_t cb) -> bool { + auto SetPassphraseCb(const gpgme_ctx_t &ctx, gpgme_passphrase_cb_t cb) + -> bool { if (gpgme_get_pinentry_mode(ctx) != GPGME_PINENTRY_MODE_LOOPBACK) { if (CheckGpgError(gpgme_set_pinentry_mode( ctx, GPGME_PINENTRY_MODE_LOOPBACK)) != GPG_ERR_NO_ERROR) { @@ -258,8 +258,8 @@ class GpgContext::Impl { return res == pass_size + 1 ? 0 : GPG_ERR_CANCELED; } - static auto TestStatusCb(void *hook, const char *keyword, - const char *args) -> gpgme_error_t { + static auto TestStatusCb(void *hook, const char *keyword, const char *args) + -> gpgme_error_t { FLOG_D("keyword %s", keyword); return GPG_ERR_NO_ERROR; } @@ -544,7 +544,7 @@ class GpgContext::Impl { args.append({"--kill", "gpg-agent"}); - LOG_E() << "gpgconf kill args: " << args + LOG_D() << "gpgconf kill args: " << args << "channel:" << parent_->GetChannel(); QProcess process; |