diff --git a/Core/Init.lua b/Core/Init.lua index f6a77d5..83603df 100644 --- a/Core/Init.lua +++ b/Core/Init.lua @@ -2,7 +2,7 @@ local CUF = select(2, ...) _G.CUF = CUF -CUF.version = 6 +CUF.version = 7 CUF.Cell = Cell diff --git a/Data/Revise.lua b/Data/Revise.lua index 44010bd..06fac95 100644 --- a/Data/Revise.lua +++ b/Data/Revise.lua @@ -85,6 +85,8 @@ function DB:Revise() if CUF_DB.version < 7 then IterateUnitLayouts(function(layout) if not layout.widgets.healthText then return end + if layout.widgets.healthText.hideIfEmptyOrFull == nil then return end + local hideIfEmptyOrFull = layout.widgets.healthText.hideIfEmptyOrFull layout.widgets.healthText.hideIfFull = hideIfEmptyOrFull layout.widgets.healthText.hideIfEmpty = hideIfEmptyOrFull