From 61884f90293ee814791f0594d4388a8244b3511e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 29 Jun 2020 18:50:53 +0300 Subject: PROTO_INTERFACE::GetMenuItem - unified access to all protocol menu items --- protocols/Tox/src/tox_menus.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Tox') 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; } -- cgit v1.2.3