diff options
author | George Hazan <ghazan@miranda.im> | 2020-06-29 18:50:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-06-29 18:50:53 +0300 |
commit | 61884f90293ee814791f0594d4388a8244b3511e (patch) | |
tree | 45e9cc5b99fb9331040e490656104b0de54e3781 /protocols/Steam/src | |
parent | 8b654ebcea0e70b228513b45bedfda08042cfb7b (diff) |
PROTO_INTERFACE::GetMenuItem - unified access to all protocol menu items
Diffstat (limited to 'protocols/Steam/src')
-rw-r--r-- | protocols/Steam/src/steam_menus.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Steam/src/steam_menus.cpp b/protocols/Steam/src/steam_menus.cpp index c2e3e997ae..b421cdc120 100644 --- a/protocols/Steam/src/steam_menus.cpp +++ b/protocols/Steam/src/steam_menus.cpp @@ -74,8 +74,8 @@ int CSteamProto::OnPrebuildContactMenu(WPARAM hContact, LPARAM) bool ctrlPressed = (GetKeyState(VK_CONTROL) & 0x8000) != 0;
bool authNeeded = getBool(hContact, "Auth", 0);
- Menu_ShowItem(m_hmiReqAuth, authNeeded || ctrlPressed);
- Menu_ShowItem(m_hmiRevokeAuth, !authNeeded || ctrlPressed);
+ Menu_ShowItem(GetMenuItem(PROTO_MENU_REQ_AUTH), authNeeded || ctrlPressed);
+ Menu_ShowItem(GetMenuItem(PROTO_MENU_REVOKE_AUTH), !authNeeded || ctrlPressed);
bool isBlocked = getBool(hContact, "Block", 0);
Menu_ShowItem(contactMenuItems[CMI_BLOCK], !isBlocked || ctrlPressed);
|