From b68fce65dbb48344d74b2fedccd643eda963ed48 Mon Sep 17 00:00:00 2001 From: Alar of Daggerspine Date: Wed, 19 Aug 2015 15:11:13 +0200 Subject: [PATCH] Swapbutton was overriding confirm button Signed-off-by: Alar of Daggerspine --- FollowerPage.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FollowerPage.lua b/FollowerPage.lua index 751a026..201d917 100644 --- a/FollowerPage.lua +++ b/FollowerPage.lua @@ -115,10 +115,10 @@ function addon:ShowUpgradeButtons(force) end) end if (not gf.swapButtons) then - gf.noConfirm=self:GetFactory():Checkbox(gf.Model,self:GetToggle("SWAPBUTTONS"),self:GetVarInfo("SWAPBUTTONS")) - gf.noConfirm:SetPoint("TOPLEFT",0,-40) - gf.noConfirm:Show() - gf.noConfirm:SetScript("OnClick",function(this) + gf.swapButtons=self:GetFactory():Checkbox(gf.Model,self:GetToggle("SWAPBUTTONS"),self:GetVarInfo("SWAPBUTTONS")) + gf.swapButtons:SetPoint("TOPLEFT",0,-40) + gf.swapButtons:Show() + gf.swapButtons:SetScript("OnClick",function(this) addon:SetBoolean("SWAPBUTTONS",this:GetChecked()) addon:ShowUpgradeButtons() end) -- 1.7.9.5