mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +00:00
gui: set fallback color values for broken configs
This commit is contained in:
@@ -416,6 +416,9 @@ pfUI:RegisterModule("gui", function ()
|
|||||||
|
|
||||||
frame.color:SetScript("OnClick", function()
|
frame.color:SetScript("OnClick", function()
|
||||||
local cr, cg, cb, ca = strsplit(",", category[config])
|
local cr, cg, cb, ca = strsplit(",", category[config])
|
||||||
|
if not cr or not cg or not cb or not ca then
|
||||||
|
cr, cg, cb, ca = 1, 1, 1, 1
|
||||||
|
end
|
||||||
local preview = this.prev
|
local preview = this.prev
|
||||||
|
|
||||||
function ColorPickerFrame.func()
|
function ColorPickerFrame.func()
|
||||||
|
|||||||
Reference in New Issue
Block a user