Skip to content

Commit c0c1cae

Browse files
committed
color picker things
1 parent 9e6f423 commit c0c1cae

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

ElvUI/Classic/Modules/Blizzard/ColorPicker.lua

+2-4
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ local function onColorSelect(frame, r, g, b)
157157

158158
if not frame:IsVisible() then
159159
delayCall()
160-
elseif not delayFunc then
160+
elseif not delayFunc then -- ColorPickerFrame.func is from stock Ace3 widget not the ElvUI variant
161161
delayFunc = ColorPickerFrame.swatchFunc or ColorPickerFrame.func
162162
E:Delay(delayWait, delayCall)
163163
end
@@ -170,9 +170,7 @@ function BL:EnhanceColorPicker()
170170
ColorPickerFrame.Border:Hide()
171171
end
172172

173-
if not E.Wrath then -- remove this line when wrath gets color picker stuff later
174-
ColorPickerFrame.swatchFunc = E.noop -- REMOVE THIS LATER IF WE CAN? errors on Footer.OkayButton
175-
end
173+
ColorPickerFrame.swatchFunc = E.noop -- REMOVE THIS LATER IF WE CAN? errors on Footer.OkayButton
176174

177175
local Header = ColorPickerFrame.Header or _G.ColorPickerFrameHeader
178176
Header:StripTextures()

ElvUI_Libraries/Core/Ace3/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker-ElvUI.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ local function ColorSwatch_OnClick(frame)
120120
end
121121

122122
ColorPickerFrame.cancelFunc = function()
123-
ColorPickerFrame.func = nil
123+
ColorPickerFrame.swatchFunc = nil
124124
ColorPickerFrame.opacityFunc = nil
125125

126126
ColorCallback(self, r, g, b, a, true)

0 commit comments

Comments
 (0)