Skip to content

Commit

Permalink
Fixed an error given when clicking on the Color Pick Frame cancel but…
Browse files Browse the repository at this point in the history
…ton.
  • Loading branch information
Tercioo committed Jan 13, 2025
1 parent 6c36abb commit 17ca979
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Libs/DF/fw.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


local dversion = 586
local dversion = 587
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary(major, minor)

Expand Down
2 changes: 1 addition & 1 deletion Libs/DF/panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ if ((ColorPickerFrame and ColorPickerFrame.SetupColorPickerAndShow) or toc >= 10

local color_pick_func_cancel = function()
local r, g, b, a = ColorPickerFrame.previousValues.r, ColorPickerFrame.previousValues.g, ColorPickerFrame.previousValues.b, ColorPickerFrame.previousValues.a
ColorPickerFrame.Content.ColorPicker:SetColorRGB(r, g, b) --error here: attempt to index field 'Content' (a nil value)
ColorPickerFrame:SetColorRGB(r, g, b)
ColorPickerFrame:dcallback (r, g, b, a, ColorPickerFrame.dframe)
end

Expand Down

0 comments on commit 17ca979

Please sign in to comment.