mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- removed some very old settings migration code that was causing problems for new users. this was added a very long time ago to facilitate the move from account-based settings to profile-based settings which should be completely unnecessary now
This commit is contained in:
12
IceHUD.lua
12
IceHUD.lua
@ -651,9 +651,6 @@ function IceHUD:OnInitialize()
|
||||
|
||||
self.IceCore = IceCore:new()
|
||||
|
||||
if not self.db.account.settingsMoved then
|
||||
self:RegisterDefaults('account', self.IceCore.defaults)
|
||||
end
|
||||
self:RegisterDefaults('profile', self.IceCore.defaults)
|
||||
|
||||
self.IceCore.settings = self.db.profile
|
||||
@ -684,15 +681,6 @@ end
|
||||
function IceHUD:OnEnable(isFirst)
|
||||
self:Debug("IceHUD:OnEnable()")
|
||||
|
||||
if not self.db.account.settingsMoved then
|
||||
for k,v in pairs(self.db.account) do
|
||||
self.db.profile[k] = v
|
||||
end
|
||||
|
||||
self:ResetDB("account")
|
||||
self.db.account.settingsMoved = true
|
||||
end
|
||||
|
||||
self.IceCore:Enable()
|
||||
|
||||
if isFirst then
|
||||
|
Reference in New Issue
Block a user