diff options
author | saturneric <[email protected]> | 2024-01-25 17:24:23 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-25 17:24:23 +0000 |
commit | f604b865cc119717e3dbe4296f20f9b3db0a1c87 (patch) | |
tree | 59992c5fd165e40206d964f490e6874cd6c73c8c /src/core/GpgCoreInit.cpp | |
parent | feat: enhance analysed results of verification and signing (diff) | |
download | GpgFrontend-f604b865cc119717e3dbe4296f20f9b3db0a1c87.tar.gz GpgFrontend-f604b865cc119717e3dbe4296f20f9b3db0a1c87.zip |
feat: enhance keys searching functions
Diffstat (limited to 'src/core/GpgCoreInit.cpp')
-rw-r--r-- | src/core/GpgCoreInit.cpp | 12 |
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 |