Skip to content

Commit

Permalink
Update MicroMenu.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Kkthnx committed Aug 18, 2024
1 parent c32da8a commit 495ae78
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions KkthnxUI/Modules/ActionBars/Elements/MicroMenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ local function CreateMicroButton(parent, data)
if type(method) == "string" then
local button = _G[method]
if not button then
print(method)
return
end
button:SetHitRectInsets(0, 0, 0, 0)
Expand Down Expand Up @@ -209,8 +208,19 @@ function Module:CreateMicroMenu()
hooksecurefunc(CharacterMicroButton, "SetNormal", SkinCharacterPortrait)
end

-- Hide HelpOpenWebTicketButton and BagsBar
-- Default elements
if MainMenuMicroButton.MainMenuBarPerformanceBar then
K.HideInterfaceOption(MainMenuMicroButton.MainMenuBarPerformanceBar)
end
K.HideInterfaceOption(HelpOpenWebTicketButton)
MainMenuMicroButton:SetScript("OnUpdate", nil)

BagsBar:Hide()
BagsBar:UnregisterAllEvents()
MicroButtonAndBagsBar:Hide()
MicroButtonAndBagsBar:UnregisterAllEvents()

if MicroMenu and MicroMenu.UpdateHelpTicketButtonAnchor then
MicroMenu.UpdateHelpTicketButtonAnchor = K.Noop
end
end

0 comments on commit 495ae78

Please sign in to comment.