From 8f8f0504e407fc0f0f25ece25d1fbe13b07cee6f Mon Sep 17 00:00:00 2001 From: funkydude Date: Sat, 22 Oct 2016 19:35:47 +0100 Subject: [PATCH] Patch 7.1 fix for friends button hiding. --- buttons.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/buttons.lua b/buttons.lua index 9ccb16e..8847e89 100644 --- a/buttons.lua +++ b/buttons.lua @@ -8,8 +8,14 @@ BCM.modules[#BCM.modules+1] = function() local hideFunc = function(frame) frame:Hide() end ChatFrameMenuButton:HookScript("OnShow", hideFunc) --Hide the chat shortcut button for emotes/languages/etc ChatFrameMenuButton:Hide() --Hide the chat shortcut button for emotes/languages/etc - FriendsMicroButton:HookScript("OnShow", hideFunc) --Hide the "Friends Online" count button - FriendsMicroButton:Hide() --Hide the "Friends Online" count button + if FriendsMicroButton then -- XXX v7 + FriendsMicroButton:HookScript("OnShow", hideFunc) --Hide the "Friends Online" count button + FriendsMicroButton:Hide() --Hide the "Friends Online" count button + end + if QuickJoinToastButton then -- XXX v7.1 + QuickJoinToastButton:HookScript("OnShow", hideFunc) --Hide the "Friends Online" count button + QuickJoinToastButton:Hide() --Hide the "Friends Online" count button + end BCM.chatFuncsPerFrame[#BCM.chatFuncsPerFrame+1] = function(n) local btnFrame = _G[n.."ButtonFrame"]