aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.cpp')
-rw-r--r--src/app.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/app.cpp b/src/app.cpp
index aac9e2cc..0ba65117 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -73,13 +73,17 @@ auto StartApplication(const GFCxtWPtr& p_ctx) -> int {
// after that load ui totally
GpgFrontend::UI::InitGpgFrontendUI(app);
+ // check and waiting for condition
+ GpgFrontend::UI::WaitingAllInitializationFinished();
+
+ // load module's translations
+ GpgFrontend::UI::InitModulesTranslations();
+
// finally create main window
return_from_event_loop_code = GpgFrontend::UI::RunGpgFrontendUI(app);
- restart_count++;
-
} while (return_from_event_loop_code == GpgFrontend::kRestartCode &&
- restart_count < 99);
+ restart_count++ < 99);
// first should shutdown the module system
GpgFrontend::Module::ShutdownGpgFrontendModules();