aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/UserInterfaceUtils.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-10-25 22:58:26 +0000
committersaturneric <[email protected]>2024-10-25 22:58:26 +0000
commitaa75deacf080aaf8c6b1fb1bb2a6b419adce7ad8 (patch)
treea82e4491efeedaf0157c3b10811426513aec2fbe /src/ui/UserInterfaceUtils.cpp
parentfeat: set reason code and text at revoke-certification (diff)
downloadGpgFrontend-aa75deacf080aaf8c6b1fb1bb2a6b419adce7ad8.tar.gz
GpgFrontend-aa75deacf080aaf8c6b1fb1bb2a6b419adce7ad8.zip
feat: add more context of key database support
Diffstat (limited to 'src/ui/UserInterfaceUtils.cpp')
-rw-r--r--src/ui/UserInterfaceUtils.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/UserInterfaceUtils.cpp b/src/ui/UserInterfaceUtils.cpp
index 0f462cf7..0dfe9867 100644
--- a/src/ui/UserInterfaceUtils.cpp
+++ b/src/ui/UserInterfaceUtils.cpp
@@ -472,6 +472,7 @@ void CommonUtils::slot_update_key_status() {
[](DataObjectPtr) -> int {
// flush key cache for all GpgKeyGetter Intances.
for (const auto &channel_id : GpgKeyGetter::GetAllChannelId()) {
+ LOG_D() << "refreshing key database at channel: " << channel_id;
GpgKeyGetter::GetInstance(channel_id).FlushKeyCache();
}
return 0;
@@ -481,8 +482,9 @@ void CommonUtils::slot_update_key_status() {
&CommonUtils::SignalKeyDatabaseRefreshDone);
// post the task to the default task runner
- Thread::TaskRunnerGetter::GetInstance().GetTaskRunner()->PostTask(
- refresh_task);
+ Thread::TaskRunnerGetter::GetInstance()
+ .GetTaskRunner(Thread::TaskRunnerGetter::kTaskRunnerType_GPG)
+ ->PostTask(refresh_task);
}
void CommonUtils::slot_update_key_from_server_finished(