Mercurial > wow > reaction
diff Profile.lua @ 220:a4e7475633b3
un-namespace action button config
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Sun, 21 Nov 2010 10:40:54 -0800 |
parents | 258ca67bde4a |
children | bb13624de7e1 |
line wrap: on
line diff
--- a/Profile.lua Fri Nov 19 23:20:32 2010 -0800 +++ b/Profile.lua Sun Nov 21 10:40:54 2010 -0800 @@ -43,6 +43,20 @@ bf:ResetProfile() end + -- (4) Action is no longer a module, uses the bar config directly + local action = db:GetNamespace("Action",true) or db:RegisterNamespace("Action") + if action then + for name, ac in pairs(action.profile.bars) do + local c = db.profile.bars[name] + if c then + for key, value in pairs(ac) do + c[key] = value + end + end + end + action:ResetProfile() + end + db.profile.dbversion = 1 end