From c7f6b3a18d475d7d374b756a636a5a0d7464e666 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Tue, 6 Feb 2007 03:43:01 +0000 Subject: [PATCH] Resolved an issue where custom edited macros were not saving harm/help buttons properly. --- CliqueOptions.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CliqueOptions.lua b/CliqueOptions.lua index fe9cbdf..561b9fa 100644 --- a/CliqueOptions.lua +++ b/CliqueOptions.lua @@ -1282,9 +1282,17 @@ function Clique:CustomBinding_OnClick() local mod = self:GetModifierText() local button = arg1 + if self.editSet == self.clicksets[L.CLICKSET_HARMFUL] then + button = string.format("%s%d", "harmbutton", self:GetButtonNumber(button)) + elseif self.editSet == self.clicksets[L.CLICKSET_HELPFUL] then + button = string.format("%s%d", "helpbutton", self:GetButtonNumber(button)) + else + button = self:GetButtonNumber(button) + end + self.customEntry.modifier = mod - self.customEntry.button = self:GetButtonNumber(button) - this:SetText(string.format("%s%s", mod, button)) + self.customEntry.button = button + this:SetText(string.format("%s%s", mod, arg1)) end local buttonSetup = { -- 1.7.9.5