from retail

This commit is contained in:
NoM0Re
2025-01-16 22:58:42 +01:00
parent 869ac5c1b4
commit db45573d1c
10 changed files with 172 additions and 53 deletions
+14 -1
View File
@@ -485,6 +485,20 @@ function WeakAuras.Import(inData, target, callbackFunc)
return nil, "Invalid import data."
end
--[[
local highestVersion = data.internalVersion or 0
if children then
for _, child in ipairs(children) do
highestVersion = max(highestVersion, child.internalVersion or 0)
end
end
if highestVersion > WeakAuras.InternalVersion() then
-- Do not run PreAdd but still show Import Window
tooltipLoading = nil;
return ImportNow(data, children, target, nil, callbackFunc)
end
]]
if version < 2000 then
if children then
data.controlledChildren = {}
@@ -495,7 +509,6 @@ function WeakAuras.Import(inData, target, callbackFunc)
end
end
local status, msg = true, ""
if type(target) ~= 'nil' then
local uid = type(target) == 'table' and target.uid or target
local targetData = Private.GetDataByUID(uid)