Assuming you set up your saved variable correctly in OnInitialize, in your enable table, change your get and set functions:
Lua Code:
get = function()
return self.db.profile.enable
end,
set = function(info, value)
self.db.profile.enable = value
end
And delete lines 20-22 because that isn't going to work.
Now to disable size based on enable:
Lua Code:
get = function()
return self.db.profile.size
end,
set = function(info, value)
self.db.profile.size = value
end,
disabled = function()
return not self.db.profile.enable
end