diff Options.lua @ 159:a3507735dfd9 v75

Fixed a rendering issue with auto-logging checkboxes.
author yellowfive
date Wed, 24 Apr 2019 18:00:42 -0700
parents a0894ffebd15
children 35612aee8e15
line wrap: on
line diff
--- a/Options.lua	Tue Mar 12 23:01:54 2019 -0700
+++ b/Options.lua	Wed Apr 24 18:00:42 2019 -0700
@@ -45,10 +45,10 @@
 local function createCheck(container, setting, text, description)
 
 	local chk = AceGUI:Create("AmrUiCheckBox")
+	container:AddChild(chk)
 	chk:SetUserData("setting", setting)
 	chk:SetText(text)
 	chk:SetCallback("OnClick", onCheckClick)
-	container:AddChild(chk)
 	
 	local desc = AceGUI:Create("AmrUiLabel")
 	container:AddChild(desc)