from retail
This commit is contained in:
@@ -5,7 +5,7 @@ local L = WeakAuras.L
|
||||
|
||||
local pairs, next, type, unpack = pairs, next, type, unpack
|
||||
|
||||
local Type, Version = "WeakAurasPendingUpdateButton", 5
|
||||
local Type, Version = "WeakAurasPendingUpdateButton", 6
|
||||
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
|
||||
|
||||
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then
|
||||
@@ -57,7 +57,14 @@ local methods = {
|
||||
self.linkedChildren = {}
|
||||
|
||||
function self.callbacks.OnUpdateClick()
|
||||
WeakAuras.Import(self.companionData.encoded)
|
||||
local linkedAuras = {}
|
||||
for auraId in pairs(self.linkedAuras) do
|
||||
if not self.linkedChildren[auraId] then
|
||||
tinsert(linkedAuras, auraId)
|
||||
end
|
||||
end
|
||||
|
||||
WeakAuras.Import(self.companionData.encoded, nil, nil, linkedAuras)
|
||||
end
|
||||
|
||||
self:SetTitle(self.companionData.name)
|
||||
|
||||
Reference in New Issue
Block a user