Mercurial > wow > reaction
comparison Profile.lua @ 227:741c4f9b251e
Better handling of new profiles
author | Flick |
---|---|
date | Mon, 21 Mar 2011 11:10:23 -0700 |
parents | d08a74e86c96 |
children | ad40cd3fc7e9 |
comparison
equal
deleted
inserted
replaced
226:76932cdb3d57 | 227:741c4f9b251e |
---|---|
120 db.profile.dbversion = 1 | 120 db.profile.dbversion = 1 |
121 end | 121 end |
122 | 122 |
123 db.profile.dbversion = self.PROFILEVERSION_LATEST | 123 db.profile.dbversion = self.PROFILEVERSION_LATEST |
124 end | 124 end |
125 | |
126 function ReAction:OnProfileChanged() | |
127 self:UpgradeProfile() | |
128 self:RebuildAll() | |
129 if not self.db.global.skipKeybindWarning then | |
130 StaticPopup_Show("REACTION_KB_WARN") -- see Options.lua | |
131 end | |
132 end | |
133 | |
134 function ReAction:OnNewProfile() | |
135 self.db.profile.dbversion = ReAction.PROFILEVERSION_LATEST | |
136 self:OnProfileChanged() | |
137 end | |
138 |