aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/UserInterfaceUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/UserInterfaceUtils.cpp')
-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);