diff options
author | George Hazan <george.hazan@gmail.com> | 2016-02-01 08:49:11 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-02-01 08:49:11 +0000 |
commit | e1b171840899382e773c89b21e0510e9eddd95b0 (patch) | |
tree | c6775a84b90d41b8f8ac19b662d28eb65d484dd3 /protocols/WhatsApp/src/theme.cpp | |
parent | 5d99a5875b9968bc684ec1c051372296d3fadec2 (diff) |
same fix for WhatsAppProto - not to create main menu copies
git-svn-id: http://svn.miranda-ng.org/main/trunk@16205 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/theme.cpp')
-rw-r--r-- | protocols/WhatsApp/src/theme.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/theme.cpp b/protocols/WhatsApp/src/theme.cpp index d3a2cbd434..9f743c4362 100644 --- a/protocols/WhatsApp/src/theme.cpp +++ b/protocols/WhatsApp/src/theme.cpp @@ -45,7 +45,7 @@ static WhatsAppProto* GetInstanceByHContact(MCONTACT hContact) return 0;
}
-int WhatsAppProto::OnBuildStatusMenu(WPARAM wParam, LPARAM lParam)
+void WhatsAppProto::InitMenu()
{
CMenuItem mi;
mi.flags = (isOnline() ? 0 : CMIF_GRAYED);
@@ -57,6 +57,11 @@ int WhatsAppProto::OnBuildStatusMenu(WPARAM wParam, LPARAM lParam) mi.name.a = LPGEN("Create group");
mi.hIcolibItem = GetIconHandle("createGroup");
m_hMenuCreateGroup = Menu_AddProtoMenuItem(&mi, m_szModuleName);
+}
+
+int WhatsAppProto::OnBuildStatusMenu(WPARAM wParam, LPARAM lParam)
+{
+ ToggleStatusMenuItems(isOnline());
return 0;
}
|