diff options
| author | saturneric <[email protected]> | 2026-09-19 13:24:46 +0200 |
|---|---|---|
| committer | saturneric <[email protected]> | 2026-09-19 13:24:46 +0200 |
| commit | 697d67f3bba40a8ddd1fec528492225492765213 (patch) | |
| tree | 507ecc9e8ed61c4984c47f9029263d949c1df410 /src/m_gpg_info | |
| parent | style(formatting): apply consistent code formatting (diff) | |
| download | modules-697d67f3bba40a8ddd1fec528492225492765213.tar.gz modules-697d67f3bba40a8ddd1fec528492225492765213.zip | |
fix(modules): correct module lifecycle setup
- rename the email CMake target to match the module name
- register key server translations during module registration
- standardize lifecycle logging with `LOG_INFO`
- document no-op deactivation handlers and correct shutdown messages
Diffstat (limited to 'src/m_gpg_info')
| -rw-r--r-- | src/m_gpg_info/GnuPGInfoGatheringModule.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp index f9bbf18..7850aba 100644 --- a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp +++ b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp @@ -83,7 +83,7 @@ using Context = struct { }; auto GFRegisterModule() -> int { - MLogDebug("gnupg info gathering module registering..."); + LOG_INFO("gnupg info gathering module registering"); REGISTER_TRANS_READER(); return 0; @@ -125,10 +125,14 @@ REGISTER_EVENT_HANDLER(REQUEST_GATHERING_ALL_GNUPG_INFO, CB_SUCC(event); }); -auto GFDeactivateModule() -> int { return 0; } +auto GFDeactivateModule() -> int { + // Nothing to undo: this module registers no settings page and no tab page + // view, so it leaves no function pointer into this shared object behind. + return 0; +} auto GFUnregisterModule() -> int { - MLogDebug("gnupg info gathering module unregistering..."); + LOG_INFO("gnupg info gathering module unregistering"); return 0; } |
