diff options
author | saturneric <[email protected]> | 2023-10-17 15:45:10 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-17 15:45:10 +0000 |
commit | 459cd3d0e512a1166b3a09233c22b7357b514760 (patch) | |
tree | 9ab0484a6d17ca7971f54f46a9d74b1c971f8b28 /src/module/GpgFrontendModuleInit.cpp | |
parent | fix: slove compile issues (diff) | |
download | GpgFrontend-459cd3d0e512a1166b3a09233c22b7357b514760.tar.gz GpgFrontend-459cd3d0e512a1166b3a09233c22b7357b514760.zip |
refactor: move module system to core and make it work
Diffstat (limited to '')
-rw-r--r-- | src/module/GpgFrontendModuleInit.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/module/GpgFrontendModuleInit.cpp b/src/module/GpgFrontendModuleInit.cpp index 234d0c18..7188bdd3 100644 --- a/src/module/GpgFrontendModuleInit.cpp +++ b/src/module/GpgFrontendModuleInit.cpp @@ -36,7 +36,7 @@ #include <memory> #include "core/function/GlobalSettingStation.h" -#include "module/system/ModuleManager.h" +#include "core/module/ModuleManager.h" // integrated modules #include "integrated/version_checking_module/VersionCheckingModule.h" @@ -45,9 +45,12 @@ namespace GpgFrontend::Module { void LoadGpgFrontendIntegratedModules() { SPDLOG_INFO("loading integrated module..."); - ModuleManager::GetInstance()->RegisterModule( - std::make_shared< - Integrated::VersionCheckingModule::VersionCheckingModule>()); + + // VersionCheckingModule + RegisterAndActivateModule< + Integrated::VersionCheckingModule::VersionCheckingModule>(); + + SPDLOG_INFO("load integrated module done."); } void InitModuleLoggingSystem() { |