commented debug code for pres_utils.lua

This commit is contained in:
gabryon99 2020-12-26 10:04:06 +01:00
parent 3db7c2f6e5
commit 615a5e1c7b

View file

@ -600,9 +600,10 @@ function prefsToggleButton(subpage_active, params)
local options = table.merge(defaults, params)
local redis_key = get_pref_redis_key(options)
if (subpage_active.entries[options.field] ~= nil) then
traceError(TRACE_ERROR, TRACE_CONSOLE, "Missing entry '" .. options.field .. "' inside entries field")
end
-- used for debugging purpose:
-- if (subpage_active.entries[options.field] ~= nil) then
-- traceError(TRACE_ERROR, TRACE_CONSOLE, "Missing entry '" .. options.field .. "' inside entries field")
-- end
return toggleTableButtonPrefs(params.title or subpage_active.entries[options.field].title,
(params.description or subpage_active.entries[options.field].description) .. (params.content or subpage_active.entries[options.field].content or ""),