From ae5936e2ea434d5b0da68e1838e41fd5a1681436 Mon Sep 17 00:00:00 2001 From: Vollmer Date: Wed, 4 Sep 2024 09:36:12 +0200 Subject: [PATCH] fire UpdateAppearance --- Menu/ColorTab.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Menu/ColorTab.lua b/Menu/ColorTab.lua index a3d64a4..8305315 100644 --- a/Menu/ColorTab.lua +++ b/Menu/ColorTab.lua @@ -72,7 +72,11 @@ local function CreateColorPicker(which, colorName, colorTable, parent) cp:SetColor(colorTable[colorName]) cp.onChange = function(r, g, b, a) DB.SetColor(which, colorName, { r, g, b, a }) - CUF:Fire("UpdateWidget", DB.GetMasterLayout(), nil, which, const.OPTION_KIND.COLOR) + if which == "castBar" then + CUF:Fire("UpdateWidget", DB.GetMasterLayout(), nil, which, const.OPTION_KIND.COLOR) + else + CUF:Fire("UpdateAppearance", "color") + end end local cpWidth = math.max(cp:GetWidth() + cp.label:GetWidth() + 5, (ColorTab.window:GetWidth() / 3) - 15)