aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-15 17:09:52 +0000
committersaturneric <[email protected]>2024-01-15 17:09:52 +0000
commit9dbc70a7a911352950801605cce75840093c1446 (patch)
treefa3ad80e1fce673386052ebe9659e1f8d0b162c7 /src
parentfix: remove low level api setjmp to improve corss-platform ability (diff)
downloadGpgFrontend-9dbc70a7a911352950801605cce75840093c1446.tar.gz
GpgFrontend-9dbc70a7a911352950801605cce75840093c1446.zip
fix: reload ui should not destroy core and module system
Diffstat (limited to 'src')
-rw-r--r--src/app.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/app.cpp b/src/app.cpp
index 0aa6e5d1..18c38ffb 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -77,14 +77,6 @@ auto StartApplication(const GFCxtWPtr& p_ctx) -> int {
GF_MAIN_LOG_DEBUG("try to destroy modules system and core");
- // first should shutdown the module system
- GpgFrontend::Module::ShutdownGpgFrontendModules();
-
- // then shutdown the core
- GpgFrontend::DestroyGpgFrontendCore();
-
- GF_MAIN_LOG_DEBUG("core and modules system destroyed");
-
restart_count++;
GF_MAIN_LOG_DEBUG(
@@ -93,6 +85,13 @@ auto StartApplication(const GFCxtWPtr& p_ctx) -> int {
} while (return_from_event_loop_code == GpgFrontend::kRestartCode &&
restart_count < 3);
+ // first should shutdown the module system
+ GpgFrontend::Module::ShutdownGpgFrontendModules();
+
+ // then shutdown the core
+ GpgFrontend::DestroyGpgFrontendCore();
+ GF_MAIN_LOG_DEBUG("core and modules system destroyed");
+
// log for debug
GF_MAIN_LOG_INFO("GpgFrontend is about to exit.");