summaryrefslogtreecommitdiff
path: root/plugins/New_GPG/src/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/New_GPG/src/init.cpp')
-rwxr-xr-xplugins/New_GPG/src/init.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/New_GPG/src/init.cpp b/plugins/New_GPG/src/init.cpp
index 1473f85550..92fb488608 100755
--- a/plugins/New_GPG/src/init.cpp
+++ b/plugins/New_GPG/src/init.cpp
@@ -182,14 +182,14 @@ int CMPlugin::Load()
mi.position = -0x7FFFFFFe;
mi.name.a = LPGEN("Toggle GPG encryption");
mi.pszService = "/ToggleEncryption";
- globals.hToggleEncryption = Menu_AddContactMenuItem(&mi);
+ g_plugin.hToggleEncryption = Menu_AddContactMenuItem(&mi);
CreateServiceFunction(mi.pszService, ToggleEncryption);
SET_UID(mi, 0x42bb535f, 0xd58e, 0x4edb, 0xbf, 0x2c, 0xfa, 0x9a, 0xbf, 0x1e, 0xb8, 0x69);
mi.position = -0x7FFFFFFd;
mi.name.a = LPGEN("Send public key");
mi.pszService = "/SendKey";
- globals.hSendKey = Menu_AddContactMenuItem(&mi);
+ g_plugin.hSendKey = Menu_AddContactMenuItem(&mi);
CreateServiceFunction(mi.pszService, SendKey);
////////////////////////////////////////////////////////////////////////////////////////
@@ -221,7 +221,7 @@ int CMPlugin::Load()
hCLIcon = ExtraIcon_RegisterIcolib(MODULENAME, Translate("GPG encryption status"), "secured", &onExtraIconPressed);
for (auto &cc : Contacts())
if (isContactHaveKey(cc))
- ExtraIcon_SetIconByName(hCLIcon, cc, "unsecured");
+ setSrmmIcon(cc);
return 0;
}