Skip to content

Commit

Permalink
fire UpdateAppearance
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Sep 4, 2024
1 parent 657588c commit ae5936e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Menu/ColorTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ae5936e

Please sign in to comment.