aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-11-22 22:06:30 +0000
committersaturneric <[email protected]>2024-11-22 22:06:30 +0000
commite16e15db09d89a997db73e313b966f95e6c59f56 (patch)
tree4f6be7375b983eda33b5faa37b9c7a3af0a57ed6 /src/core/function
parentfix: correct the path to the executable of app image mode (diff)
downloadGpgFrontend-e16e15db09d89a997db73e313b966f95e6c59f56.tar.gz
GpgFrontend-e16e15db09d89a997db73e313b966f95e6c59f56.zip
feat: rewrite core init processes and add env option
Diffstat (limited to 'src/core/function')
-rw-r--r--src/core/function/basic/ChannelObject.cpp5
-rw-r--r--src/core/function/gpg/GpgAdvancedOperator.cpp15
-rw-r--r--src/core/function/gpg/GpgContext.cpp2
3 files changed, 10 insertions, 12 deletions
diff --git a/src/core/function/basic/ChannelObject.cpp b/src/core/function/basic/ChannelObject.cpp
index 15767b93..39a5568b 100644
--- a/src/core/function/basic/ChannelObject.cpp
+++ b/src/core/function/basic/ChannelObject.cpp
@@ -39,10 +39,7 @@ ChannelObject::ChannelObject(int channel, QString type)
#ifdef DEBUG
ChannelObject::~ChannelObject() noexcept {
- // using iostream instead of log bacause at this time log object may have
- // already been destroyed.
- QTextStream(stdout) << "releasing channel object: " << this->type_
- << Qt::endl;
+ LOG_D() << "Releasing Channel Object: " << this->type_;
}
#else
ChannelObject::~ChannelObject() noexcept = default;
diff --git a/src/core/function/gpg/GpgAdvancedOperator.cpp b/src/core/function/gpg/GpgAdvancedOperator.cpp
index f143cdbb..a742b60a 100644
--- a/src/core/function/gpg/GpgAdvancedOperator.cpp
+++ b/src/core/function/gpg/GpgAdvancedOperator.cpp
@@ -126,13 +126,14 @@ void GpgFrontend::GpgAdvancedOperator::RestartGpgComponents() {
return;
}
- StartGpgAgent([](int err, DataObjectPtr) {
- if (err >= 0) {
- Module::UpsertRTValue(
- "core", "gpg_advanced_operator.restart_gpg_components", true);
- return;
- }
- });
+ // StartGpgAgent([](int err, DataObjectPtr) {
+ // if (err >= 0) {
+ // Module::UpsertRTValue(
+ // "core", "gpg_advanced_operator.restart_gpg_components",
+ // true);
+ // return;
+ // }
+ // });
}});
}
diff --git a/src/core/function/gpg/GpgContext.cpp b/src/core/function/gpg/GpgContext.cpp
index 5c5dd813..002c0488 100644
--- a/src/core/function/gpg/GpgContext.cpp
+++ b/src/core/function/gpg/GpgContext.cpp
@@ -243,7 +243,7 @@ class GpgContext::Impl {
assert(ctx != nullptr);
if (!args.gpgconf_path.isEmpty()) {
- LOG_D() << "set custom gpgconf path: " << args.gpgconf_path;
+ LOG_D() << "set gpgconf path: " << args.gpgconf_path;
auto err = gpgme_ctx_set_engine_info(ctx, GPGME_PROTOCOL_GPGCONF,
args.gpgconf_path.toUtf8(), nullptr);