aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-18 21:45:10 +0000
committersaturneric <[email protected]>2025-04-18 21:45:10 +0000
commita6bfc4103e3cda98b4c8ebaf279d37a8f71c2d60 (patch)
tree93ce7d77c9e61123d102d44f5d55b0d89f4a67d4 /src/init.cpp
parentfix: init database path and name as soon as possible (diff)
downloadGpgFrontend-a6bfc4103e3cda98b4c8ebaf279d37a8f71c2d60.tar.gz
GpgFrontend-a6bfc4103e3cda98b4c8ebaf279d37a8f71c2d60.zip
fix: gpg agent cannot run as daemon on windows
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index f0481152..ee19553a 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -187,7 +187,7 @@ void ShutdownGlobalBasicEnv(const GFCxtWPtr &p_ctx) {
for (const auto &channel : GpgContext::GetAllChannelId()) {
assert(GpgAdvancedOperator::GetInstance(channel).KillAllGpgComponents());
}
- } else if (!ctx->unit_test_mode && clear_gpg_password_cache) {
+ } else if (clear_gpg_password_cache) {
for (const auto &channel : GpgContext::GetAllChannelId()) {
assert(GpgAdvancedOperator::GetInstance(channel).ClearGpgPasswordCache());
}