From 5b512ba4ab4846d1bbf95dfa3dafd0b7fdd0a7e6 Mon Sep 17 00:00:00 2001 From: Crum Date: Fri, 22 Jun 2018 22:10:06 -0500 Subject: [PATCH] DBConversions (just in case) --- ElvUI/Core/core.lua | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/ElvUI/Core/core.lua b/ElvUI/Core/core.lua index caa0ea9..19c9659 100644 --- a/ElvUI/Core/core.lua +++ b/ElvUI/Core/core.lua @@ -1015,7 +1015,25 @@ end --DATABASE CONVERSIONS 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 local CPU_USAGE = {}