Skip to content

Commit

Permalink
Fix: fixed default action override issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sampconrad committed Sep 8, 2024
1 parent 10d574f commit b4fc95e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CombatMode/Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ local function GetButtonOverrideGroup(modifier, groupOrder)
args = {
note = {
type = "description",
name = "|cff909090To use a |cffcfcfcfMacro|r as a |cffB47EDEClick Casting action|r, select |cff69ccf0Run MACRO|r from the dropwon and type the name of the macro into the input.|r\n",
name = "|cff909090To directly assign a |cffcfcfcfMacro|r as a |cffB47EDEClick Casting Action|r, select |cff69ccf0Run MACRO|r from the drop-down list and type its name in the input.|r",
order = 4
}
}
Expand Down
8 changes: 2 additions & 6 deletions CombatMode/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -613,12 +613,8 @@ function CM.SetNewBinding(buttonSettings)
else
valueToUse = buttonSettings.value
end
if not CM.MacroExists(buttonSettings.macroName) then
CM.DebugPrint("No macro found with that name.")
else
SetMouselookOverrideBinding(buttonSettings.key, valueToUse)
CM.DebugPrint(buttonSettings.key .. "'s override binding is now " .. valueToUse)
end
SetMouselookOverrideBinding(buttonSettings.key, valueToUse)
CM.DebugPrint(buttonSettings.key .. "'s override binding is now " .. valueToUse)
end

function CM.OverrideDefaultButtons()
Expand Down

0 comments on commit b4fc95e

Please sign in to comment.