aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/GpgCoreInit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/GpgCoreInit.cpp')
-rw-r--r--src/core/GpgCoreInit.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/GpgCoreInit.cpp b/src/core/GpgCoreInit.cpp
index 04531faf..38b8f33a 100644
--- a/src/core/GpgCoreInit.cpp
+++ b/src/core/GpgCoreInit.cpp
@@ -438,7 +438,17 @@ void InitGpgFrontendCore(CoreInitArgs args) {
"received callback from gnupg-info-gathering ");
// try to restart all components
- GpgFrontend::GpgAdvancedOperator::RestartGpgComponents();
+ auto settings =
+ GlobalSettingStation::GetInstance().GetSettings();
+ auto restart_all_gnupg_components_on_start =
+ settings
+ .value("gnupg/restart_all_gnupg_components_on_start",
+ false)
+ .toBool();
+
+ if (restart_all_gnupg_components_on_start) {
+ GpgAdvancedOperator::RestartGpgComponents();
+ }
Module::UpsertRTValue("core", "env.state.gnupg", 1);
// announce that all checkings were finished