From 0bad8ba3e6b7574cba25ad11bf425f15700657e9 Mon Sep 17 00:00:00 2001 From: saturneric Date: Mon, 29 Jul 2024 21:19:23 +0200 Subject: [PATCH] fix: mount should do during activate phase --- src/m_gpg_info/GnuPGInfoGatheringModule.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp index 2e13590..cd1b0c7 100644 --- a/src/m_gpg_info/GnuPGInfoGatheringModule.cpp +++ b/src/m_gpg_info/GnuPGInfoGatheringModule.cpp @@ -69,20 +69,16 @@ using Context = struct { GpgComponentInfo component_info; }; -auto GFRegisterModule() -> int { - MLogDebug("gnupg info gathering module registering"); - - GFUIMountEntry(DUP("AboutDialogTabs"), - QMapToMetaDataArray({{"TabTitle", GTrC::tr("GnuPG")}}), 1, - GnupgTabFactory); - - return 0; -} +auto GFRegisterModule() -> int { return 0; } auto GFActiveModule() -> int { LISTEN("REQUEST_GATHERING_GNUPG_INFO"); LOAD_TRANS("ModuleGnuPGInfoGathering"); + + GFUIMountEntry(DUP("AboutDialogTabs"), + QMapToMetaDataArray({{"TabTitle", GTrC::tr("GnuPG")}}), 1, + GnupgTabFactory); return 0; }