From af23df8d252f898e0b141f6ffc4c2c5b89d3654a Mon Sep 17 00:00:00 2001 From: Vollmer Date: Fri, 27 Sep 2024 13:24:33 +0200 Subject: [PATCH] bump version to 7 --- Core/Init.lua | 2 +- Data/Revise.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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