summaryrefslogtreecommitdiff
path: root/protocols/Tox/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-06-29 18:50:53 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-06-29 18:50:53 +0300
commit61884f90293ee814791f0594d4388a8244b3511e (patch)
tree45e9cc5b99fb9331040e490656104b0de54e3781 /protocols/Tox/src
parent8b654ebcea0e70b228513b45bedfda08042cfb7b (diff)
PROTO_INTERFACE::GetMenuItem - unified access to all protocol menu items
Diffstat (limited to 'protocols/Tox/src')
-rw-r--r--protocols/Tox/src/tox_menus.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_menus.cpp b/protocols/Tox/src/tox_menus.cpp
index 2ea767b0e4..761f8a1320 100644
--- a/protocols/Tox/src/tox_menus.cpp
+++ b/protocols/Tox/src/tox_menus.cpp
@@ -14,10 +14,10 @@ int CToxProto::OnPrebuildContactMenu(WPARAM hContact, LPARAM)
bool isCtrlPressed = (GetKeyState(VK_CONTROL) & 0x8000) != 0;
bool isAuthNeed = getByte(hContact, "Auth", 0) > 0;
- Menu_ShowItem(m_hmiReqAuth, isCtrlPressed || isAuthNeed);
+ Menu_ShowItem(GetMenuItem(PROTO_MENU_REQ_AUTH), isCtrlPressed || isAuthNeed);
bool isGrantNeed = getByte(hContact, "Grant", 0) > 0;
- Menu_ShowItem(m_hmiGrantAuth, isCtrlPressed || isGrantNeed);
+ Menu_ShowItem(GetMenuItem(PROTO_MENU_GRANT_AUTH), isCtrlPressed || isGrantNeed);
return 0;
}