diff options
author | saturneric <[email protected]> | 2023-12-15 09:04:59 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-15 09:04:59 +0000 |
commit | f5cf83e4b3fdf1e9ae82b00f39e45e189809c419 (patch) | |
tree | cc7d9b764b0274cfce5830e22a1ecc23678bd091 /src/init.cpp | |
parent | fix: slove issues on memory and add asan support for debug (diff) | |
download | GpgFrontend-f5cf83e4b3fdf1e9ae82b00f39e45e189809c419.tar.gz GpgFrontend-f5cf83e4b3fdf1e9ae82b00f39e45e189809c419.zip |
fix: slove some issues on memory and intilizations
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/init.cpp b/src/init.cpp index 56ed1d5d..780e9770 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -158,7 +158,7 @@ void InitGlobalPathEnv() { } } -void InitGlobalBasicalEnv(const GFCxtWPtr &p_ctx) { +void InitGlobalBasicalEnv(const GFCxtWPtr &p_ctx, bool gui_mode) { GFCxtSPtr ctx = p_ctx.lock(); if (ctx == nullptr) { return; @@ -170,11 +170,7 @@ void InitGlobalBasicalEnv(const GFCxtWPtr &p_ctx) { // change path to search for related InitGlobalPathEnv(); - if (ctx->load_ui_env) { - ctx->InitGUIApplication(); - } else { - ctx->InitCoreApplication(); - } + ctx->InitApplication(gui_mode); // should load module system first Module::ModuleInitArgs module_init_args; |