aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-31 06:13:26 +0000
committersaturneric <[email protected]>2024-07-31 06:13:26 +0000
commit081147d65fcb0a20818bbfb43f6ec4f5ddf59581 (patch)
treef6ec05666acb98da46b4cb0dfc0871225f4ad388 /src/app.cpp
parentfix: dealing with unknown compiler (diff)
downloadGpgFrontend-081147d65fcb0a20818bbfb43f6ec4f5ddf59581.tar.gz
GpgFrontend-081147d65fcb0a20818bbfb43f6ec4f5ddf59581.zip
fix: addressing some of the significant deficiencies identified
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();