From cd52178179a00438bb81f20b38fb872882600297 Mon Sep 17 00:00:00 2001 From: Alex Shubert Date: Sun, 6 Oct 2013 20:32:10 +0400 Subject: [PATCH] fixed createCheckBox call --- ui/main_options.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/main_options.lua b/ui/main_options.lua index 52798bd..3bec513 100644 --- a/ui/main_options.lua +++ b/ui/main_options.lua @@ -31,6 +31,7 @@ local function CreateCheckbox(name, marginx, marginy) local cb = CreateFrame("CheckButton", nm, OptionsPanel, "OptionsCheckButtonTemplate") _G[nm.."Text"]:SetText(L[name]) cb:SetPoint("TOPLEFT", OptionsPanel, "BOTTOMLEFT", marginx, marginy) + cb:SetScript("OnClick", function(self) ptable.TempConfig[name] = self:GetChecked() == 1 end) -- 1.7.9.5