config: migrate legacy buff/debuff naming

This commit is contained in:
shagu
2018-01-05 21:44:17 +01:00
parent bc238a85b1
commit d18faea609
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -744,5 +744,16 @@ function pfUI:MigrateConfig()
end
end
-- migrating legacy buff/debuff naming (> 3.5.0)
if checkversion(3, 5, 0) then
local unitframes = { "player", "target", "focus", "group", "grouptarget", "grouppet", "raid", "ttarget", "pet", "fallback" }
for _, unitframe in pairs(unitframes) do
local entry = pfUI_config.unitframes[unitframe]
if entry.buffs and entry.buffs == "hide" then entry.buffs = "off" end
if entry.debuffs and entry.debuffs == "hide" then entry.debuffs = "off" end
end
end
pfUI_config.version = pfUI.version.string
end