Originally Posted by votan
version is nil?
should be a number, e.g. 1.
|
Right! Just forgotted to place this variable in example.
But version is assigned in my version of the add-on.
Nearly solved: ZOS bug? getFunc can receive only local variables! Now it works:
Code:
function Addon.Menu()
local settings=Addon.Vars
local options = {
{ type = "checkbox",
name = "Enables add-on",
tooltip = "",
getFunc = function() return settings.OnOff end,
setFunc = function(value) Addon.Vars.OnOff =value end,
default = Addon.Defaults.OnOff,
},
end
But now ZO_SavedVars do not saves actual values!