DBConversions (just in case)

This commit is contained in:
Crum
2018-06-22 22:10:06 -05:00
parent 5468d8c227
commit 5b512ba4ab
+19 -1
View File
@@ -1015,7 +1015,25 @@ end
--DATABASE CONVERSIONS --DATABASE CONVERSIONS
function E:DBConversions() function E:DBConversions()
-- Add conversions here --Combat & Resting Icon options update
if E.db.unitframe.units.player.combatIcon ~= nil then
E.db.unitframe.units.player.CombatIcon.enable = E.db.unitframe.units.player.combatIcon
E.db.unitframe.units.player.combatIcon = nil
end
if E.db.unitframe.units.player.restIcon ~= nil then
E.db.unitframe.units.player.RestIcon.enable = E.db.unitframe.units.player.restIcon
E.db.unitframe.units.player.restIcon = nil
end
--Convert old "Buffs and Debuffs" font size option to individual options
if E.db.auras.fontSize then
local fontSize = E.db.auras.fontSize
E.db.auras.buffs.countFontSize = fontSize
E.db.auras.buffs.durationFontSize = fontSize
E.db.auras.debuffs.countFontSize = fontSize
E.db.auras.debuffs.durationFontSize = fontSize
E.db.auras.fontSize = nil
end
end end
local CPU_USAGE = {} local CPU_USAGE = {}