Skip to content

Commit

Permalink
Potential fix for keybind feature in wrath classic (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Numynum committed May 7, 2023
1 parent 89385b4 commit d175488
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MacroToolkit/modules/bindingframe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ function MT:CreateBindingFrame()
frame.profile:SetSize(20, 20)
frame.profile:SetPoint("TOPLEFT", button1, "BOTTOMLEFT", -50, -5)
frame.profile:SetHitRectInsets(0, -100, 0, 0)
frame.profile.text:SetFormattedText(" %s%s", _G.HIGHLIGHT_FONT_COLOR_CODE, _G.CHARACTER_SPECIFIC_KEYBINDINGS)
local text = frame.profile.text or _G[frame.profile:GetName() .. "Text"]
if text then
text:SetFormattedText(" %s%s", _G.HIGHLIGHT_FONT_COLOR_CODE, _G.CHARACTER_SPECIFIC_KEYBINDINGS)
end
frame.profile.enabled = true
frame.profile:SetScript("OnClick",
function(this)
Expand Down

0 comments on commit d175488

Please sign in to comment.