aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/GpgFrontendUIInit.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2023-02-18 11:12:03 +0000
committerSaturneric <[email protected]>2023-02-18 11:12:03 +0000
commit3b062240c399bc7fb24fde3442db407386c17161 (patch)
tree06f41cd7928ae1f5ab2b935203d8399dab11373a /src/ui/GpgFrontendUIInit.cpp
parentfix: improve stability of the object-channel model (diff)
downloadGpgFrontend-3b062240c399bc7fb24fde3442db407386c17161.tar.gz
GpgFrontend-3b062240c399bc7fb24fde3442db407386c17161.zip
fix: improve the task execution model
Diffstat (limited to 'src/ui/GpgFrontendUIInit.cpp')
-rw-r--r--src/ui/GpgFrontendUIInit.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ui/GpgFrontendUIInit.cpp b/src/ui/GpgFrontendUIInit.cpp
index 940cf82b..6e41f81f 100644
--- a/src/ui/GpgFrontendUIInit.cpp
+++ b/src/ui/GpgFrontendUIInit.cpp
@@ -50,7 +50,6 @@ extern void init_logging_system();
extern void init_locale();
void InitGpgFrontendUI(QApplication* app) {
-
// init locale
init_locale();
@@ -88,7 +87,7 @@ void InitGpgFrontendUI(QApplication* app) {
waiting_dialog_label->setWordWrap(true);
waiting_dialog->setLabel(waiting_dialog_label);
waiting_dialog->resize(420, 120);
- app->connect(init_ctx_task, &Thread::CtxCheckTask::SignalTaskFinished,
+ app->connect(init_ctx_task, &Thread::CtxCheckTask::SignalTaskEnd,
waiting_dialog, [=]() {
SPDLOG_DEBUG("gpg context loaded");
waiting_dialog->finished(0);
@@ -108,8 +107,8 @@ void InitGpgFrontendUI(QApplication* app) {
// new local event looper
QEventLoop looper;
- app->connect(init_ctx_task, &Thread::CtxCheckTask::SignalTaskFinished,
- &looper, &QEventLoop::quit);
+ app->connect(init_ctx_task, &Thread::CtxCheckTask::SignalTaskEnd, &looper,
+ &QEventLoop::quit);
// start the thread to load the gpg context
Thread::TaskRunnerGetter::GetInstance().GetTaskRunner()->PostTask(
@@ -207,9 +206,10 @@ void init_locale() {
SPDLOG_DEBUG("lang from settings: {}", lang);
SPDLOG_DEBUG("project name: {}", PROJECT_NAME);
- SPDLOG_DEBUG(
- "locales path: {}",
- GpgFrontend::GlobalSettingStation::GetInstance().GetLocaleDir().u8string());
+ SPDLOG_DEBUG("locales path: {}",
+ GpgFrontend::GlobalSettingStation::GetInstance()
+ .GetLocaleDir()
+ .u8string());
#ifndef WINDOWS
if (!lang.empty()) {