aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-10-26 11:02:54 +0000
committersaturneric <[email protected]>2024-10-26 11:02:54 +0000
commit9c81ea3f784b1dde44a4bbe30f78152c5767622c (patch)
tree3342182cfbcf93be12c195da16c8c35d28665da9 /src
parentfeat: add more context of key database support (diff)
downloadGpgFrontend-9c81ea3f784b1dde44a4bbe30f78152c5767622c.tar.gz
GpgFrontend-9c81ea3f784b1dde44a4bbe30f78152c5767622c.zip
fix: try debugging key database refreshing process
Diffstat (limited to 'src')
-rw-r--r--src/ui/UserInterfaceUtils.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/UserInterfaceUtils.cpp b/src/ui/UserInterfaceUtils.cpp
index 0dfe9867..600507de 100644
--- a/src/ui/UserInterfaceUtils.cpp
+++ b/src/ui/UserInterfaceUtils.cpp
@@ -471,17 +471,20 @@ void CommonUtils::slot_update_key_status() {
auto *refresh_task = new Thread::Task(
[](DataObjectPtr) -> int {
// flush key cache for all GpgKeyGetter Intances.
- for (const auto &channel_id : GpgKeyGetter::GetAllChannelId()) {
+ for (const auto &channel_id : GpgContext::GetAllChannelId()) {
LOG_D() << "refreshing key database at channel: " << channel_id;
GpgKeyGetter::GetInstance(channel_id).FlushKeyCache();
}
+ LOG_D() << "refreshing key database at all channel done";
return 0;
},
"update_key_database_task");
+
connect(refresh_task, &Thread::Task::SignalTaskEnd, this,
&CommonUtils::SignalKeyDatabaseRefreshDone);
// post the task to the default task runner
+ LOG_D() << "sending key database refresh task to gpg task runner...";
Thread::TaskRunnerGetter::GetInstance()
.GetTaskRunner(Thread::TaskRunnerGetter::kTaskRunnerType_GPG)
->PostTask(refresh_task);