diff options
author | saturneric <[email protected]> | 2024-01-15 17:09:52 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-15 17:09:52 +0000 |
commit | 9dbc70a7a911352950801605cce75840093c1446 (patch) | |
tree | fa3ad80e1fce673386052ebe9659e1f8d0b162c7 /src | |
parent | fix: remove low level api setjmp to improve corss-platform ability (diff) | |
download | GpgFrontend-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.cpp | 15 |
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."); |