Skip to content

Commit d175488

Browse files
committed
Potential fix for keybind feature in wrath classic (#27)
1 parent 89385b4 commit d175488

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

MacroToolkit/modules/bindingframe.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ function MT:CreateBindingFrame()
8787
frame.profile:SetSize(20, 20)
8888
frame.profile:SetPoint("TOPLEFT", button1, "BOTTOMLEFT", -50, -5)
8989
frame.profile:SetHitRectInsets(0, -100, 0, 0)
90-
frame.profile.text:SetFormattedText(" %s%s", _G.HIGHLIGHT_FONT_COLOR_CODE, _G.CHARACTER_SPECIFIC_KEYBINDINGS)
90+
local text = frame.profile.text or _G[frame.profile:GetName() .. "Text"]
91+
if text then
92+
text:SetFormattedText(" %s%s", _G.HIGHLIGHT_FONT_COLOR_CODE, _G.CHARACTER_SPECIFIC_KEYBINDINGS)
93+
end
9194
frame.profile.enabled = true
9295
frame.profile:SetScript("OnClick",
9396
function(this)

0 commit comments

Comments
 (0)