from retail
This commit is contained in:
@@ -455,7 +455,7 @@ local function createDistributeAlignOptions(id, data)
|
||||
end
|
||||
local spaced;
|
||||
local previousData;
|
||||
for index, childId in pairs(data.controlledChildren) do
|
||||
for _, childId in pairs(data.controlledChildren) do
|
||||
local childData = WeakAuras.GetData(childId);
|
||||
if(childData) then
|
||||
local _, bottom, _, top = getRect(childData);
|
||||
@@ -672,7 +672,7 @@ end
|
||||
|
||||
-- Modify preview thumbnail
|
||||
local function modifyThumbnail(parent, frame, data)
|
||||
function frame:SetIcon(path)
|
||||
function frame:SetIcon()
|
||||
if data.groupIcon then
|
||||
local success = frame.icon:SetTexture(data.groupIcon)
|
||||
if success then
|
||||
@@ -693,12 +693,12 @@ local function modifyThumbnail(parent, frame, data)
|
||||
frame.defaultIcon:Show()
|
||||
end
|
||||
|
||||
frame:SetIcon(nil)
|
||||
frame:SetIcon()
|
||||
end
|
||||
|
||||
-- Create "new region" preview
|
||||
local function createIcon()
|
||||
local thumbnail = createThumbnail(UIParent)
|
||||
local thumbnail = createThumbnail()
|
||||
thumbnail.defaultIcon = createDefaultIcon(thumbnail)
|
||||
return thumbnail
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user