diff options
author | saturneric <[email protected]> | 2023-12-03 20:25:21 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-03 20:25:21 +0000 |
commit | 054e6e28cca2517dda2319ef683314b3318c39a6 (patch) | |
tree | ae9ff4a9fe280f3640ca249bad45ab250cfd1610 /src/core/module/ModuleManager.cpp | |
parent | fix: slove issues in key/subkey generation (diff) | |
download | GpgFrontend-054e6e28cca2517dda2319ef683314b3318c39a6.tar.gz GpgFrontend-054e6e28cca2517dda2319ef683314b3318c39a6.zip |
feat: standarized and speed up app env loading process
Diffstat (limited to 'src/core/module/ModuleManager.cpp')
-rw-r--r-- | src/core/module/ModuleManager.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/module/ModuleManager.cpp b/src/core/module/ModuleManager.cpp index 5e2aa994..03ac21a8 100644 --- a/src/core/module/ModuleManager.cpp +++ b/src/core/module/ModuleManager.cpp @@ -102,6 +102,10 @@ class ModuleManager::Impl { return grt_->ListChildKeys(n, k); } + auto IsModuleActivated(ModuleIdentifier id) -> bool { + return gmc_->IsModuleActivated(id); + } + private: static ModuleMangerPtr global_module_manager; TaskRunnerPtr task_runner_; @@ -109,6 +113,10 @@ class ModuleManager::Impl { GRTPtr grt_; }; +auto IsModuleAcivate(ModuleIdentifier id) -> bool { + return ModuleManager::GetInstance()->IsModuleActivated(id); +} + auto UpsertRTValue(const std::string& namespace_, const std::string& key, const std::any& value) -> bool { return ModuleManager::GetInstance()->UpsertRTValue(namespace_, key, @@ -170,4 +178,8 @@ auto ModuleManager::ListRTChildKeys(const std::string& n, const std::string& k) return p_->ListRTChildKeys(n, k); } +auto ModuleManager::IsModuleActivated(ModuleIdentifier id) -> bool { + return p_->IsModuleActivated(id); +} + } // namespace GpgFrontend::Module
\ No newline at end of file |