diff gui.lua @ 40:dc3a66688e50

More debug message tweaks. Put comm and loot caches on separate-but-related expirations; comm is now a bit shorter and loot is now a bit longer. Check cache expirations more often (possibly revert this).
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Fri, 30 Dec 2011 21:29:44 +0000
parents 8f7ec6ccf5e3
children 4f1e71f62776
line wrap: on
line diff
--- a/gui.lua	Thu Dec 29 23:15:51 2011 +0000
+++ b/gui.lua	Fri Dec 30 21:29:44 2011 +0000
@@ -859,7 +859,8 @@
 -- Tab 1:  Events Of Interest (implementation)
 tabs_OnGroupSelected["eoi"] = function(ocontainer,specials)
 	if (not addon.rebroadcast) and (not addon.enabled) and (#g_loot < 1) then
-		return addon.dprint('flow', "Nothing to show in first tab, skipping creation")
+		addon.dprint('flow', "Nothing to show in first tab, skipping creation")
+		return
 	end
 
 	-- The first time this function is called, we set up a persistent ST
@@ -1416,7 +1417,7 @@
 		w:SetDisabled(addon.enabled or addon.rebroadcast)
 		grp:AddChild(w)
 
-		w = mkbutton("EditBox", nil, addon.recent_messages.ttl, [[comm cache (only) ttl]])
+		w = mkbutton("EditBox", nil, addon.recent_messages.ttl, [[comm cache TTL]])
 		w:SetRelativeWidth(0.05)
 		w:SetLabel("ttl")
 		w:SetCallback("OnTextChanged", adv_careful_OnTextChanged)
@@ -1500,9 +1501,10 @@
 			w:SetLabel(d)
 			if d == "notraid" then
 				w:SetDescription[[Tick this before enabling to make the addon work outside of raid groups]]
-			elseif d == "alsolog" then
-				w:SetDescription[[Also log all debug messages to disk. See print_log.lua in the addon folder for later viewing.]]
 			else
+				if d == "alsolog" then
+					w:SetDescription[[Also log all debug messages to disk. See print_log.lua in the addon folder for later viewing.]]
+				end
 				w:SetDisabled(not addon.DEBUG_PRINT)
 			end
 			w:SetValue(v)