diff options
author | saturneric <[email protected]> | 2024-01-17 16:14:13 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-17 16:14:13 +0000 |
commit | 37848811b6c8ca6c2a707431ec077c8098918afe (patch) | |
tree | 2ed4e5759ca6c432171963068beca61a164e98d2 /src/init.cpp | |
parent | feat: update ci files and reduce dependencies (diff) | |
download | GpgFrontend-37848811b6c8ca6c2a707431ec077c8098918afe.tar.gz GpgFrontend-37848811b6c8ca6c2a707431ec077c8098918afe.zip |
fix: improve code quality, docs and ci files
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/init.cpp b/src/init.cpp index 4f9cf821..f9a1dabd 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -55,17 +55,10 @@ int setenv(const char *name, const char *value, int overwrite) { void InitLoggingSystem(const GFCxtSPtr &ctx) { RegisterSyncLogger("core", ctx->log_level); - RegisterSyncLogger("main", ctx->log_level); - RegisterSyncLogger("module", ctx->log_level); - - if (ctx->load_ui_env) { - // init the logging system for ui - RegisterSyncLogger("ui", ctx->log_level); - } else { - RegisterSyncLogger("test", ctx->log_level); - } + RegisterSyncLogger("ui", ctx->log_level); + RegisterSyncLogger("test", ctx->log_level); } void InitGlobalPathEnv() { @@ -116,10 +109,8 @@ void InitGlobalBasicalEnv(const GFCxtWPtr &p_ctx, bool gui_mode) { module_init_args.log_level = ctx->log_level; Module::LoadGpgFrontendModules(module_init_args); - if (ctx->load_ui_env) { - // then preload ui - UI::PreInitGpgFrontendUI(); - } + // then preload ui + UI::PreInitGpgFrontendUI(); CoreInitArgs core_init_args; core_init_args.gather_external_gnupg_info = ctx->gather_external_gnupg_info; |