diff options
author | saturneric <[email protected]> | 2024-01-25 18:04:53 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-25 18:04:53 +0000 |
commit | 7a7dededba9384ac9af85775bdd6b64c890006fa (patch) | |
tree | 585350dcbf0061c06425167e99c82e2be461a902 /src/core/GpgCoreInit.cpp | |
parent | feat: enhance keys searching functions (diff) | |
download | GpgFrontend-7a7dededba9384ac9af85775bdd6b64c890006fa.tar.gz GpgFrontend-7a7dededba9384ac9af85775bdd6b64c890006fa.zip |
feat: enhance gnupg control board
Diffstat (limited to 'src/core/GpgCoreInit.cpp')
-rw-r--r-- | src/core/GpgCoreInit.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/core/GpgCoreInit.cpp b/src/core/GpgCoreInit.cpp index 38b8f33a..2042120a 100644 --- a/src/core/GpgCoreInit.cpp +++ b/src/core/GpgCoreInit.cpp @@ -223,7 +223,7 @@ auto GetGnuPGPathByGpgConf(const QString& gnupg_install_fs_path) -> QString { auto DetectGpgConfPath() -> QString { auto settings = GlobalSettingStation::GetInstance().GetSettings(); auto use_custom_gnupg_install_path = - settings.value("basic/use_custom_gnupg_install_path", false).toBool(); + settings.value("gnupg/use_custom_gnupg_install_path", false).toBool(); auto custom_gnupg_install_path = settings.value("basic/custom_gnupg_install_path", QString{}).toString(); @@ -307,11 +307,11 @@ void InitGpgFrontendCore(CoreInitArgs args) { settings.value("network/auto_import_missing_key", false).toBool(); auto use_custom_key_database_path = - settings.value("basic/use_custom_key_database_path", false) + settings.value("gnupg/use_custom_key_database_path", false) .toBool(); auto custom_key_database_path = - settings.value("basic/custom_key_database_path", QString{}) + settings.value("gnupg/custom_key_database_path", QString{}) .toString(); auto custom_gnupg_install_path = @@ -319,7 +319,7 @@ void InitGpgFrontendCore(CoreInitArgs args) { .toString(); auto use_pinentry_as_password_input_dialog = - settings.value("basic/use_pinentry_as_password_input_dialog", false) + settings.value("gnupg/use_pinentry_as_password_input_dialog", false) .toBool(); GF_CORE_LOG_DEBUG("core loaded if use custom key databse path: {}", @@ -441,9 +441,7 @@ void InitGpgFrontendCore(CoreInitArgs args) { auto settings = GlobalSettingStation::GetInstance().GetSettings(); auto restart_all_gnupg_components_on_start = - settings - .value("gnupg/restart_all_gnupg_components_on_start", - false) + settings.value("gnupg/restart_gpg_agent_on_start", false) .toBool(); if (restart_all_gnupg_components_on_start) { |